From d65fe32a98058bee100a1759ef3ff732616e16b2 Mon Sep 17 00:00:00 2001 From: Paul Shawn <32349595+topsworld@users.noreply.github.com> Date: Fri, 3 Jan 2025 21:08:39 +0800 Subject: [PATCH] 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 --- CHANGELOG.md | 10 ++++++++++ custom_components/xiaomi_home/manifest.json | 2 +- .../xiaomi_home/miot/specs/specv2entity.py | 16 ++++++++-------- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d4f36de..22fdb9a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # CHANGELOG +## v0.1.5b0 +### Added +- Add missing parameter state_class [#101](https://github.com/XiaoMi/ha_xiaomi_home/pull/101) +### Changed +- Make git update guide more accurate [#561](https://github.com/XiaoMi/ha_xiaomi_home/pull/561) +### Fixed +- Limit *light.mode count (value-range) [#535](https://github.com/XiaoMi/ha_xiaomi_home/pull/535) +- Update miot cloud raise error msg [#551](https://github.com/XiaoMi/ha_xiaomi_home/pull/551) +- Fix table header misplacement [#554](https://github.com/XiaoMi/ha_xiaomi_home/pull/554) + ## v0.1.4 ### Added - Refactor miot network, add network detection logic, improve devices filter logic. [458](https://github.com/XiaoMi/ha_xiaomi_home/pull/458) [#191](https://github.com/XiaoMi/ha_xiaomi_home/pull/191) diff --git a/custom_components/xiaomi_home/manifest.json b/custom_components/xiaomi_home/manifest.json index 79a6bdb2..3e07f1cd 100644 --- a/custom_components/xiaomi_home/manifest.json +++ b/custom_components/xiaomi_home/manifest.json @@ -25,7 +25,7 @@ "cryptography", "psutil" ], - "version": "v0.1.4", + "version": "v0.1.5b0", "zeroconf": [ "_miot-central._tcp.local." ] diff --git a/custom_components/xiaomi_home/miot/specs/specv2entity.py b/custom_components/xiaomi_home/miot/specs/specv2entity.py index d79d80a8..9763970b 100644 --- a/custom_components/xiaomi_home/miot/specs/specv2entity.py +++ b/custom_components/xiaomi_home/miot/specs/specv2entity.py @@ -407,38 +407,38 @@ 'device_class': SensorDeviceClass.DURATION, 'entity': 'sensor' }, - 'electric-power': { + 'electric-power': { 'device_class': SensorDeviceClass.POWER, 'entity': 'sensor', 'optional': { 'state_class': SensorStateClass.MEASUREMENT, 'unit_of_measurement': UnitOfPower.WATT } - }, - 'electric-current': { + }, + 'electric-current': { 'device_class': SensorDeviceClass.CURRENT, 'entity': 'sensor', 'optional': { 'state_class': SensorStateClass.MEASUREMENT, 'unit_of_measurement': UnitOfElectricCurrent.AMPERE } - }, - 'power-consumption': { + }, + 'power-consumption': { 'device_class': SensorDeviceClass.ENERGY, 'entity': 'sensor', 'optional': { 'state_class': SensorStateClass.TOTAL_INCREASING, 'unit_of_measurement': UnitOfEnergy.KILO_WATT_HOUR } - }, - 'total-battery': { + }, + 'total-battery': { 'device_class': SensorDeviceClass.ENERGY, 'entity': 'sensor', 'optional': { 'state_class': SensorStateClass.TOTAL_INCREASING, 'unit_of_measurement': UnitOfEnergy.KILO_WATT_HOUR } - }, + }, 'has-someone-duration': 'no-one-determine-time', 'no-one-duration': 'no-one-determine-time' }