Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
myTselection committed Jan 8, 2023
1 parent 799561a commit c13f12d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/pixometer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
_LOGGER = logging.getLogger(__name__)


async def async_setup(hass, config):
async def async_setup(hass: HomeAssistant, config: dict):
"""Set up this component using YAML."""
_LOGGER.info(STARTUP)
if config.get(DOMAIN) is None:
Expand Down
5 changes: 1 addition & 4 deletions custom_components/pixometer/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ async def dry_setup(hass, config_entry, async_add_devices):
async_add_devices(sensors)


async def async_setup_platform(
hass, config_entry, async_add_devices, discovery_info=None
):
async def async_setup_platform(hass, config_entry, async_add_devices, discovery_info=None):
"""Setup sensor platform for the ui"""
_LOGGER.info("async_setup_platform " + NAME)
await dry_setup(hass, config_entry, async_add_devices)
Expand All @@ -65,7 +63,6 @@ async def async_setup_entry(hass, config_entry, async_add_devices):
await dry_setup(hass, config, async_add_devices)
return True


async def async_remove_entry(hass, config_entry):
_LOGGER.info("async_remove_entry " + NAME)
try:
Expand Down

0 comments on commit c13f12d

Please sign in to comment.