Skip to content

Commit 35966f5

Browse files
style: Apply ruff formatting to fix CI
Reformat long lines in __init__.py and coordinator.py to pass ruff checks.
1 parent dd16e72 commit 35966f5

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

custom_components/mitsubishi/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
139139
# This prevents the AC from being stuck with stale remote temperature data
140140
if coordinator.remote_temp_mode:
141141
try:
142-
_LOGGER.info(
143-
"Switching AC to internal temperature sensor during unload"
144-
)
142+
_LOGGER.info("Switching AC to internal temperature sensor during unload")
145143
await hass.async_add_executor_job(
146144
coordinator.controller.set_current_temperature, None
147145
)

custom_components/mitsubishi/coordinator.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ async def _send_remote_temperature(self) -> None:
147147
)
148148
# Tell AC to use internal sensor temporarily, but don't disable remote mode
149149
# so we automatically resume when the entity becomes available
150-
await self.hass.async_add_executor_job(
151-
self.controller.set_current_temperature, None
152-
)
150+
await self.hass.async_add_executor_job(self.controller.set_current_temperature, None)
153151
return
154152

155153
if state.state in (STATE_UNAVAILABLE, STATE_UNKNOWN):
@@ -161,9 +159,7 @@ async def _send_remote_temperature(self) -> None:
161159
)
162160
# Tell AC to use internal sensor temporarily, but don't disable remote mode
163161
# so we automatically resume when the entity becomes available
164-
await self.hass.async_add_executor_job(
165-
self.controller.set_current_temperature, None
166-
)
162+
await self.hass.async_add_executor_job(self.controller.set_current_temperature, None)
167163
return
168164

169165
try:
@@ -186,6 +182,4 @@ async def _send_remote_temperature(self) -> None:
186182
)
187183
# Tell AC to use internal sensor temporarily, but don't disable remote mode
188184
# Invalid values might be transient (e.g., during sensor reconfiguration)
189-
await self.hass.async_add_executor_job(
190-
self.controller.set_current_temperature, None
191-
)
185+
await self.hass.async_add_executor_job(self.controller.set_current_temperature, None)

0 commit comments

Comments
 (0)