Skip to content

Commit db47acb

Browse files
CopilotDefinitelyADev
authored andcommitted
fix: remove duplicated sensors by creating individual measurement sensors with proper units
1 parent f9d6fde commit db47acb

File tree

6 files changed

+457
-158
lines changed

6 files changed

+457
-158
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
exclude: ^stubs/
1212

1313
- repo: https://github.com/psf/black
14-
rev: 23.12.1
14+
rev: 25.1.0
1515
hooks:
1616
- id: black
1717
language_version: python3

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to the Rooms integration will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## ## [1.2.0] - TBD
9+
10+
### Added
11+
- Individual measurement sensors: `AreaPowerSensor`, `AreaEnergySensor`, `AreaTemperatureSensor`, `AreaHumiditySensor`, `AreaClimateTargetSensor`
12+
- Proper `native_unit_of_measurement` for each measurement sensor following Home Assistant standards
13+
- Better separation of concerns: summary sensor for state, individual sensors for measurements
14+
15+
### Fixed
16+
- Allows users to control precision and formatting through Home Assistant's built-in sensor features
17+
- Follows Home Assistant sensor design principles
18+
819
## [1.0.0] - 2025-09-09
920

1021
### Added

custom_components/custom_areas/const.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
# State values
2020
STATE_ACTIVE = "active"
21-
STATE_IDLE = "idle"
22-
STATE_UNKNOWN = "unknown"
2321

2422
# Icons
2523
ICON_HOME = "mdi:home"

custom_components/custom_areas/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"iot_class": "local_push",
1010
"issue_tracker": "https://github.com/DefinitelyADev/room-entity/issues",
1111
"requirements": [],
12-
"version": "1.0.0"
12+
"version": "1.2.0"
1313
}

0 commit comments

Comments
 (0)