mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Remove unused parameters from function calls in rainbird (#134124)
Remove unused parameters from rainbird function calls
This commit is contained in:
parent
268c21addd
commit
14059c6df8
@ -79,14 +79,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: RainbirdConfigEntry) ->
|
||||
return False
|
||||
if mac_address := entry.data.get(CONF_MAC):
|
||||
_async_fix_entity_unique_id(
|
||||
hass,
|
||||
er.async_get(hass),
|
||||
entry.entry_id,
|
||||
format_mac(mac_address),
|
||||
str(entry.data[CONF_SERIAL_NUMBER]),
|
||||
)
|
||||
_async_fix_device_id(
|
||||
hass,
|
||||
dr.async_get(hass),
|
||||
entry.entry_id,
|
||||
format_mac(mac_address),
|
||||
@ -170,7 +168,6 @@ async def _async_fix_unique_id(
|
||||
|
||||
|
||||
def _async_fix_entity_unique_id(
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
config_entry_id: str,
|
||||
mac_address: str,
|
||||
@ -214,7 +211,6 @@ def _async_device_entry_to_keep(
|
||||
|
||||
|
||||
def _async_fix_device_id(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
config_entry_id: str,
|
||||
mac_address: str,
|
||||
|
Loading…
x
Reference in New Issue
Block a user