Remove unused parameters from function calls in rainbird (#134124)

Remove unused parameters from rainbird function calls
This commit is contained in:
Allen Porter 2024-12-28 03:34:27 -08:00 committed by GitHub
parent 268c21addd
commit 14059c6df8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,