Skip to content
Snippets Groups Projects
Commit 8b025728 authored by jkerdreu's avatar jkerdreu
Browse files

- Lint

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3035 b32b6428-25c9-4566-ad07-03861ab6144f
parent df54d285
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,9 @@ from .bridge import Bridge
from .const import DOMAIN, CONF_DB_SERVER
_LOGGER = logging.getLogger(__name__)
PLATFORMS: list[str] = ["light", "switch", "sensor", "binary_sensor","cover", "siren"]
PLATFORMS: list[str] = ["light", "switch", "sensor", "binary_sensor", "cover", "siren"]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
......@@ -41,10 +40,11 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
return unload_ok
async def async_remove_config_entry_device(hass: HomeAssistant, entry: ConfigEntry, device_entry: DeviceEntry ) -> bool:
async def async_remove_config_entry_device(hass: HomeAssistant, entry: ConfigEntry, device_entry: DeviceEntry) -> bool:
"""Remove a config entry from a device."""
bridge = hass.data[DOMAIN][entry.entry_id]
# TODO: add a method to extract ident_id
ident_id = list(device_entry.identifiers)[0][1]
bridge.ha_remove_device(ident_id)
return True
......@@ -15,7 +15,7 @@ async def async_setup_entry(hass: HomeAssistant,
config_entry: ConfigEntry,
async_add_entities: AddEntitiesCallback) -> None:
binding = {'shutter.position': [ShutterPosition],
'shutter.' : [Shutter, ]}
'shutter.' : [Shutter]}
return async_setup_factory(hass, config_entry, async_add_entities, binding)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment