Skip to content

Commit

Permalink
Supports air direction in the climate entity on devices that support …
Browse files Browse the repository at this point in the history
…swing mode
  • Loading branch information
nao-pon committed Nov 2, 2024
1 parent bd8e64b commit ebf1d04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/echonetlite/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def __init__(self, connector, config):
self._attr_supported_features = (
self._attr_supported_features | ClimateEntityFeature.FAN_MODE
)
if ENL_AIR_VERT in list(self._connector._setPropertyMap):
if ENL_AIR_VERT in list(
self._connector._setPropertyMap
) or ENL_SWING_MODE in list(self._connector._setPropertyMap):
self._attr_supported_features = (
self._attr_supported_features | ClimateEntityFeature.SWING_MODE
)
Expand Down

0 comments on commit ebf1d04

Please sign in to comment.