Skip to content

Commit

Permalink
Fix external temperature sensor support.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleech committed Mar 12, 2024
1 parent 4c82759 commit 09de2ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/magiqtouch/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ async def async_setup_entry(
)
)

if driver.current_device_state.external_temp is not None:
if driver.current_system_state.ExternalAirSensorPresent:
sensors.append(
TemperatureSensor(
"External Temperature",
driver,
coordinator,
data_callback=lambda: driver.current_device_state.internal_temp,
data_callback=lambda: driver.current_device_state.external_temp,
)
)
# todo add zone temperature sensor etc
Expand Down

0 comments on commit 09de2ff

Please sign in to comment.