115 Commits

Author SHA1 Message Date
Paul Shawn
d65fe32a98
docs: update changelog and version to v0.1.5b0 (#563)
* style: code format

* docs: update changelog and version to v0.1.5b0

* docs: update changelog
2025-01-03 21:08:39 +08:00
Paul Shawn
b75cafb184
fix: limit *light.mode count (value-range) (#535)
* feat: spec filter add lemesh.switch.sw3f13 indicator-light.mode

* feat: limit mode count (value-range)

* revert: spec-filter.json

* fix: fix judgment logic

* style: remove unuse code

* style: change light log level
2025-01-03 20:43:15 +08:00
tiger
5438698a6e
feat:add missing parameter state_class (#101)
* feat: add state_class for sensor

* feat: add optional state_class and unit_of_measurement for properties

* feat:add support for state_class and unit process

* style: fix pylint format

* style: fix pylint format

* sytle: change logic to suit conversation

---------

Co-authored-by: LiShuzhen <SusanPhevos@gmail.com>
2025-01-03 20:42:34 +08:00
Paul Shawn
da90e099d1
fix: update miot cloud raise error msg (#551) 2025-01-03 19:00:11 +08:00
Paul Shawn
b6147de1b8
doc: update changelog and version to v0.1.4 (#522) 2024-12-31 22:45:22 +08:00
Paul Shawn
621ca8002b
feat: improve devices filter & optimize the network detection logic (#458)
* fix: fix miot http type error

* style: change some miot cloud log level

* feat: improve devices filter

* feat: update save devices logic

* refator: refactor miot network

* feat: update miot_client.get_miot_instance_async

* feat: option flow support network detect config

* doc: update translations

* feat: update config flow network detect logic

* style: change miot client refresh prop log level

* feat: config flow support network check

* doc: update translations

* refactor: rename func name

* fix: ignore invalid type error

* feat: option flow add check network deps

* --amend

* --amend

* feat: check mqtt broker

* feat: config flow support check network deps

* feat: update manifest requirements, paho-mqtt<2.0.0

* fix: fix mqtt broker check logic

* style: remove unuse params

* feat: show integration instance id

* feat: update data_schema from required to optional

* fix: translation text error
2024-12-31 16:37:46 +08:00
Alone
40a75bef28
feat: use yaml to parse action params (#447)
* feat: use yaml to parse action params

* feat: use yaml to parse action params

* feat: improve notify, action-text trans logic

* perf: reduce the number of judgments

---------

Co-authored-by: topsworld <sworldtop@gmail.com>
2024-12-31 16:36:20 +08:00
Feng Wang
196e19d10a
misc: remove tev dependency for lan control & fixs (#333)
* Remove tev & fix some type issues

* Use call_soon_threadsafe instead of event fd for ipc

* fix lint

* add tev back

* fix lint

* ignore broad exception warning

* revert changes in the license

* do not set asyncio event loop

* fix racing condition

* remove unused data classes

* change internal class scope

* set timers to None after cancel

* Adjust import order

* fix typo

* Fix typo in comments

* guard lan apis with init_done
2024-12-30 20:54:50 +08:00
Feng Wang
365f4e57d8
feat: remove duplicate dependency (#390) 2024-12-24 21:58:50 +08:00
Paul Shawn
6d978872e7
docs: update changelog and version to v0.1.4b1 (#428) 2024-12-24 21:37:13 +08:00
Paul Shawn
29b7489ac7
feat: support devices filter & devices changed notify (#332)
* feat: add devices filter page

* doc: update translations and i18n

* fix: cancel miot http timer

* feat: improve devices filter

* doc: update translations/de

* fix: i18n type error

* feat: config flow support device filter

* fix: fix mdns type error

* fix: fix miot client i18n logic

* feat: add connect type

* doc: update translations and i18n

* feat: update auth info save logic

* feat: improve config flow devices filter

* fix: fix some type error

* doc: update translations for option flow

* fix: fix option flow type error

* feat: support option flow devices filter

* doc: update option flow tranlations

* feat: update webhook handle func to private

* feat: update config flow translations

* doc: update tranlations text

* feat: custom display device changed notify

* feat: device changed notify logical refinement

* doc: update translations content
2024-12-24 21:28:50 +08:00
Li Shuzhen
78461cbd8a
fix: lumi.switch.acn040 identify service translation of zh-Hans (#412)
* fix: lumi.switch.acn040 identify service translation of zh-Hans

* fix: remove useless part

* fix: lumi.switch.acn040 identify service translation of en
2024-12-24 21:18:33 +08:00
RangerCD
7654e5e518
fix: ignore undefined piid and keep processing following arguments (#377) 2024-12-24 21:03:11 +08:00
Paul Shawn
0f5da18108
fix: fix unit convert attribute error (#396) 2024-12-24 21:02:36 +08:00
Paul Shawn
c1867e2baf
fix: fix type error, wrong use of any and Any (#338)
* fix: fix type error, wrong use of any and Any

* fix: wrong use of session close

* fix: fix test_lan type error

* fix: remove __del__

* feat: oauth, http add deinit_async
2024-12-22 10:46:58 +08:00
Paul Shawn
afef709839
doc: update changelog and version to v0.1.4b0 (#312) 2024-12-21 11:41:24 +08:00
Paul Shawn
02ddf8df56
fix: fix lan ctrl filter logic (#303)
* style: rename devices_filter to homes_select

* fix: fix miot_lan update_devices

* fix: async blocking call
2024-12-21 11:08:36 +08:00
Paul Shawn
f87e746188
fix: fix miot cloud token refresh (#307) 2024-12-21 10:42:48 +08:00
Paul Shawn
67785f747a
doc: update changelog and version (#290)
* doc: update changelog and version

* doc: update changelog
2024-12-20 21:20:49 +08:00
Paul Shawn
bd3a98b976
Fix local ctrl error (#271)
* feat: common.py add gen_absolute_path, load_yaml_file

* fix: miot_lan add profile devices filter

* fix: add lan ctrl profile model list

* test: improve lan test

* fix: fix pylint redefined-outer-name

* feat: update tools to update profile models file

* fix: fix pylint waning

* fix: update miot lan NETWORK_UNSTABLE_RESUME_TH value
2024-12-20 19:21:43 +08:00
Feng Wang
aacb794e1f
feat: Use aiohttp instead of waiting for blocking calls (#227)
* Use native async call instead of converting blocking calls

* remove nullable declarations

* fixs

* Fix star expression

* fix gather again

* remove unused private function

* Fix naming conflict

* Add the deleted function back. Disable the warning instead.

* remove trailing space

* handle wrong mime type from cloud

* Fix request header

* fix missing await
2024-12-20 17:34:34 +08:00
Zeyu Li
a879ae2cdf
docs: fix README_zh.md about changelog (#270)
fix: error messages and incorrent return value which could possibly lead to crash in mint_storage.py
2024-12-20 17:34:03 +08:00
Alireza
5f5b3feea5
Fix: Replace inconsistent logging.error with _LOGGER.error (#262) 2024-12-20 13:56:51 +08:00
Paul Shawn
571483b302
chore: Improve multi-language translation actions (#256)
* test: check bool trans integrity

* feat: add tools to update and format data

* style: sort data

* feat: update check_rule_format.py

* style: remove unuse SUPPORTED_PLATFORMS item

* test: check spec rule sort

* fix: fix py import

* feat: remove unuse code

* feat: add spec data sort
2024-12-20 09:15:07 +08:00
Feng Wang
f10885fbfd Fix dutch translation declaration 2024-12-19 17:22:31 +08:00
Li Shuzhen
bba8ba7f7b
Merge pull request #168 from wheresrofl/patch-1
feat: dutch translation
2024-12-19 14:07:54 +08:00
topsworld
b93d8631b8 fix: translations structure error 2024-12-19 13:31:17 +08:00
Rofl
d980b1bfb4
feat: more dutch translations
accidentally missed this file
2024-12-18 18:04:23 +01:00
Rofl
2fb030c52d
Merge branch 'XiaoMi:main' into patch-1 2024-12-18 17:01:15 +00:00
topsworld
1e0ddc1f0c feat: const.INTEGRATION_LANGUAGES add pt, pt-BR 2024-12-18 21:20:51 +08:00
Rofl
01f6bbf2c7
feat: nederland translation 2024-12-18 13:06:00 +00:00
topsworld
2c37fb63ca doc: update change log and version 2024-12-18 20:39:48 +08:00
fanjinyu
fec5d10f42 add pt and pt-BR language support in i18n 2024-12-18 20:16:14 +08:00
Li Shuzhen
10aa78f490
Merge pull request #135 from XiaoMi/feat_heater_devices
feat: support xiaomi heater devices
2024-12-18 19:00:33 +08:00
topsworld
6e2de896c3 feat: update xiaomi heater ctrl logic 2024-12-18 17:42:40 +08:00
Guoliang Li
ce4f23b1bd style: fix the trailing space problem reported by pylint 2024-12-18 15:56:45 +08:00
Guoliang Li
e70acd8421 style: update comments to meet coding standards 2024-12-18 15:56:45 +08:00
Guoliang Li
b498a708ac style: ignore pylint warning 2024-12-18 15:56:45 +08:00
KNOOP
c744919032 fix: handle UnitOfConductivity import #54
Move unit imports inside function 和 add fallback for older versions. Resolves
2024-12-18 15:56:45 +08:00
KNOOP
6bb4bf32d7 fix: handle UnitOfConductivity import
Move unit imports inside function and add fallback for older versions.

Resolves #123
2024-12-18 15:56:45 +08:00
Hudson Brendon
83dbceac6d Create pt-BR.json 2024-12-18 15:29:43 +08:00
Hudson Brendon
7a50778d2b Create pt.json 2024-12-18 15:29:28 +08:00
topsworld
b5f9e931b7 feat: support xiaomi heater devices 2024-12-18 10:36:31 +08:00
topsworld
99e654f0c7 style: remove invalid space 2024-12-18 10:35:29 +08:00
topsworld
189060dd86 fix: add STATE_ON to devices that not define mode 2024-12-17 21:39:09 +08:00
topsworld
1fd5e8e57d fix: set the temperature limit 2024-12-17 21:39:09 +08:00
topsworld
bf435374d2 fix: water heater entity add STATE_OFF 2024-12-17 21:39:09 +08:00
topsworld
8a1e464cdd fix: invalid cover status 2024-12-17 19:18:19 +08:00
LiShuzhen
ac5901bf1f fix: bool value false 2024-12-17 19:04:25 +08:00
LiShuzhen
18283ed179 perf: remove permanent true statement 2024-12-17 19:04:25 +08:00