mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
ruff fix
This commit is contained in:
parent
a7d17bfad7
commit
e8214076c6
@ -596,7 +596,7 @@ async def async_remove_config_entry_device(
|
|||||||
hass: HomeAssistant, config_entry: ConfigEntry, device_entry: DeviceEntry
|
hass: HomeAssistant, config_entry: ConfigEntry, device_entry: DeviceEntry
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Remove MQTT config entry from a device."""
|
"""Remove MQTT config entry from a device."""
|
||||||
from . import device_automation
|
from . import device_automation # noqa: PLC0415
|
||||||
|
|
||||||
await device_automation.async_removed_from_device(hass, device_entry.id)
|
await device_automation.async_removed_from_device(hass, device_entry.id)
|
||||||
return True
|
return True
|
||||||
|
@ -3682,7 +3682,7 @@ def try_connection(
|
|||||||
"""Test if we can connect to an MQTT broker."""
|
"""Test if we can connect to an MQTT broker."""
|
||||||
# We don't import on the top because some integrations
|
# We don't import on the top because some integrations
|
||||||
# should be able to optionally rely on MQTT.
|
# should be able to optionally rely on MQTT.
|
||||||
import paho.mqtt.client as mqtt
|
import paho.mqtt.client as mqtt # noqa: PLC0415
|
||||||
|
|
||||||
mqtt_client_setup = MqttClientSetup(user_input)
|
mqtt_client_setup = MqttClientSetup(user_input)
|
||||||
mqtt_client_setup.setup()
|
mqtt_client_setup.setup()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user