mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 16:10:44 +08:00
Compare commits
3 Commits
21ce64d202
...
9e47c6b4b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e47c6b4b1 | ||
|
|
7c97b85f02 | ||
|
|
880fea3f4b |
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,4 +1,14 @@
|
||||
# CHANGELOG
|
||||
## v0.4.1
|
||||
### Changed
|
||||
- The setting option "Cover closed position" in CONFIGURE is changed to "Cover dead zone width". [#1301](https://github.com/XiaoMi/ha_xiaomi_home/pull/1301)
|
||||
- Add an alongside switch entity for 090615.aircondition.ktf and juhl.aircondition.hvac. [#1303](https://github.com/XiaoMi/ha_xiaomi_home/pull/1303)
|
||||
### Fixed
|
||||
- Fix the vacuum status so that the vacuum activity will not always be idle. [#1299](https://github.com/XiaoMi/ha_xiaomi_home/pull/1299)
|
||||
- Set the device on when the switch status is False or None. [#1303](https://github.com/XiaoMi/ha_xiaomi_home/pull/1303)
|
||||
- Hide sensitive info in printing logs. [#1328](https://github.com/XiaoMi/ha_xiaomi_home/pull/1328)
|
||||
- Fix the MIoT-Spec-V2 of cuco.plug.cp2d electric current, xiaomi.fan.p45 fan level, sanmei.valve.s1 power consumption, current and voltage, xiaomi.aircondition.c17, xiaomi.aircondition.m16 and xiaomi.airc.h40h00 humidity-range unit. [#1329](https://github.com/XiaoMi/ha_xiaomi_home/pull/1329)
|
||||
|
||||
## v0.4.0
|
||||
### Added
|
||||
- Add the watch as the device tracker entity. [#1189](https://github.com/XiaoMi/ha_xiaomi_home/pull/1189)
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
"cryptography",
|
||||
"psutil"
|
||||
],
|
||||
"version": "v0.4.0",
|
||||
"version": "v0.4.1",
|
||||
"zeroconf": [
|
||||
"_miot-central._tcp.local."
|
||||
]
|
||||
|
||||
@ -1048,11 +1048,11 @@ class MIoTClient:
|
||||
|
||||
mips = self._mips_local.get(group_id, None)
|
||||
if mips:
|
||||
if state == MipsServiceState.REMOVED:
|
||||
mips.disconnect()
|
||||
self._mips_local.pop(group_id, None)
|
||||
return
|
||||
if (
|
||||
# if state == MipsServiceState.REMOVED:
|
||||
# mips.disconnect()
|
||||
# self._mips_local.pop(group_id, None)
|
||||
# return
|
||||
if ( # ADDED or UPDATED
|
||||
mips.client_id == self._entry_data['virtual_did']
|
||||
and mips.host == data['addresses'][0]
|
||||
and mips.port == data['port']
|
||||
|
||||
@ -232,9 +232,10 @@ class MipsService:
|
||||
for item in list(self._services.values()):
|
||||
if item['name'] != name:
|
||||
continue
|
||||
service_data = self._services.pop(item['group_id'], {})
|
||||
self.__call_service_change(
|
||||
state=MipsServiceState.REMOVED, data=service_data)
|
||||
# Ignore mdns REMOVED package. Let the connection close by itself.
|
||||
# service_data = self._services.pop(item['group_id'], {})
|
||||
# self.__call_service_change(
|
||||
# state=MipsServiceState.REMOVED, data=service_data)
|
||||
return
|
||||
self._main_loop.create_task(
|
||||
self.__request_service_info_async(zeroconf, service_type, name))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user