mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 07:47:08 +00:00
Remove unneeded bind_hass from device_automation code (#71599)
This commit is contained in:
parent
1c841590aa
commit
f859cb6b2e
@ -26,7 +26,7 @@ from homeassistant.helpers import (
|
|||||||
entity_registry as er,
|
entity_registry as er,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.loader import IntegrationNotFound, bind_hass
|
from homeassistant.loader import IntegrationNotFound
|
||||||
from homeassistant.requirements import async_get_integration_with_requirements
|
from homeassistant.requirements import async_get_integration_with_requirements
|
||||||
|
|
||||||
from .exceptions import DeviceNotFound, InvalidDeviceAutomationConfig
|
from .exceptions import DeviceNotFound, InvalidDeviceAutomationConfig
|
||||||
@ -212,7 +212,6 @@ async def _async_get_device_automations_from_domain(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@bind_hass
|
|
||||||
async def async_get_device_automations(
|
async def async_get_device_automations(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
automation_type: DeviceAutomationType,
|
automation_type: DeviceAutomationType,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user