Skip to content

Commit

Permalink
Merge branch 'master' into chemelli74-app
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 authored Jul 11, 2024
2 parents 262b7a2 + e2cc6ce commit cbdc0c9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions custom_components/midea_ac_lan/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def set_preset_mode(self, preset_mode: str) -> None:

def update_state(self, status: Any) -> None: # noqa: ANN401, ARG002
"""Midea Climate update state."""
_LOGGER.debug("Climate update_state self: %s", type(self))
self.schedule_update_ha_state()


Expand Down
4 changes: 2 additions & 2 deletions custom_components/midea_ac_lan/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ async def _check_key_from_cloud(
subtype=0,
attributes={},
)
if dm.connect(refresh_status=False):
if dm.connect(refresh_status=False, get_capabilities=False):
dm.close_socket()
return value
# return debug log with failed key
Expand Down Expand Up @@ -681,7 +681,7 @@ async def async_step_manually(
subtype=0,
attributes={},
)
if dm.connect(refresh_status=False):
if dm.connect(refresh_status=False, get_capabilities=False):
dm.close_socket()
data = {
CONF_NAME: user_input[CONF_NAME],
Expand Down
1 change: 1 addition & 0 deletions custom_components/midea_ac_lan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ async def async_set_percentage(self, percentage: int) -> None:

def update_state(self, status: Any) -> None: # noqa: ANN401, ARG002
"""Midea Fan update state."""
_LOGGER.debug("Fan update_state self: %s", type(self))
self.schedule_update_ha_state()


Expand Down
1 change: 1 addition & 0 deletions custom_components/midea_ac_lan/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def turn_off(self, **kwargs: Any) -> None: # noqa: ANN401, ARG002

def update_state(self, status: Any) -> None: # noqa: ANN401, ARG002
"""Midea Humidifier update state."""
_LOGGER.debug("Humidifier update_state self: %s", type(self))
self.schedule_update_ha_state()


Expand Down
1 change: 1 addition & 0 deletions custom_components/midea_ac_lan/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@ def turn_off(self, **kwargs: Any) -> None: # noqa: ANN401, ARG002

def update_state(self, status: Any) -> None: # noqa: ANN401,ARG002
"""Midea Light update state."""
_LOGGER.debug("Light update_state self: %s", type(self))
self.schedule_update_ha_state()
4 changes: 2 additions & 2 deletions custom_components/midea_ac_lan/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"integration_type": "device",
"iot_class": "local_push",
"issue_tracker": "https://github.com/wuwentao/midea_ac_lan/issues",
"requirements": ["pycryptodome", "midea-local==1.3.0"],
"version": "v0.5.1"
"requirements": ["pycryptodome", "midea-local==1.3.1"],
"version": "v0.5.2"
}
1 change: 1 addition & 0 deletions custom_components/midea_ac_lan/midea_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ def icon(self) -> str:
@callback
def update_state(self, status: Any) -> None: # noqa: ANN401
"""Update entity state."""
_LOGGER.debug("Midea entity update_state self: %s", type(self))
if self._entity_key in status or "available" in status:
self.schedule_update_ha_state()
1 change: 1 addition & 0 deletions custom_components/midea_ac_lan/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ async def async_turn_off(self, **kwargs: Any) -> None: # noqa: ANN401

def update_state(self, status: Any) -> None: # noqa: ANN401, ARG002
"""Midea Water Heater update state."""
_LOGGER.debug("Water heater update_state self: %s", type(self))
self.schedule_update_ha_state()


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pycryptodome==3.20.0
midea-local==1.3.0
midea-local==1.3.1

0 comments on commit cbdc0c9

Please sign in to comment.