Remove None from dict.get(key, None) (#33794)
This commit is contained in:
parent
d54ee77375
commit
46bbe816f6
45 changed files with 104 additions and 110 deletions
|
@ -121,7 +121,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
SERVICE_SET_HUMIDIFY_SETPOINT,
|
||||
)
|
||||
platform.async_register_entity_service(
|
||||
SERVICE_SET_AIRCLEANER_MODE, SET_AIRCLEANER_SCHEMA, SERVICE_SET_AIRCLEANER_MODE,
|
||||
SERVICE_SET_AIRCLEANER_MODE, SET_AIRCLEANER_SCHEMA, SERVICE_SET_AIRCLEANER_MODE
|
||||
)
|
||||
|
||||
entities = []
|
||||
|
@ -323,9 +323,9 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateDevice):
|
|||
|
||||
def set_temperature(self, **kwargs):
|
||||
"""Set target temperature."""
|
||||
new_heat_temp = kwargs.get(ATTR_TARGET_TEMP_LOW, None)
|
||||
new_cool_temp = kwargs.get(ATTR_TARGET_TEMP_HIGH, None)
|
||||
set_temp = kwargs.get(ATTR_TEMPERATURE, None)
|
||||
new_heat_temp = kwargs.get(ATTR_TARGET_TEMP_LOW)
|
||||
new_cool_temp = kwargs.get(ATTR_TARGET_TEMP_HIGH)
|
||||
set_temp = kwargs.get(ATTR_TEMPERATURE)
|
||||
|
||||
deadband = self._thermostat.get_deadband()
|
||||
cur_cool_temp = self._zone.get_cooling_setpoint()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue