Skip to content

Commit

Permalink
Remove old lambda js methods
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Nov 9, 2024
1 parent 082a087 commit 37127e8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions custom_components/hive_local_thermostat/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ async def async_setup_entry(
"preheating": "mdi:radiator",
},
name=config_entry.title,
# value_fn=lambda data: cast(str, data["running_state_heat"]),
value_fn=lambda js: js["running_state_heat"],
topic=config_entry.options[CONF_MQTT_TOPIC],
entry_id=config_entry.entry_id,
Expand All @@ -80,7 +79,6 @@ async def async_setup_entry(
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
suggested_display_precision=1,
value_fn=lambda data: cast(float, data["local_temperature_heat"]),
# value_fn=lambda js: js["local_temperature_heat"],
topic=config_entry.options[CONF_MQTT_TOPIC],
entry_id=config_entry.entry_id,
model=config_entry.options[CONF_MODEL],
Expand All @@ -96,7 +94,6 @@ async def async_setup_entry(
},
name=config_entry.title,
value_fn=lambda data: cast(str, data["running_state_water"]),
# value_fn=lambda js: js["running_state_water"],
topic=config_entry.options[CONF_MQTT_TOPIC],
entry_id=config_entry.entry_id,
model=config_entry.options[CONF_MODEL],
Expand All @@ -117,7 +114,6 @@ async def async_setup_entry(
},
name=config_entry.title,
value_fn=lambda data: cast(str, data["running_state"]),
# value_fn=lambda js: js["running_state"],
topic=config_entry.options[CONF_MQTT_TOPIC],
entry_id=config_entry.entry_id,
model=config_entry.options[CONF_MODEL],
Expand All @@ -132,7 +128,6 @@ async def async_setup_entry(
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
suggested_display_precision=1,
value_fn=lambda data: cast(float, data["local_temperature"]),
# value_fn=lambda js: js["local_temperature"],
topic=config_entry.options[CONF_MQTT_TOPIC],
entry_id=config_entry.entry_id,
model=config_entry.options[CONF_MODEL],
Expand Down

0 comments on commit 37127e8

Please sign in to comment.