Skip to content

[Bug]:Device Class for aggregate_wind_direction #619

Description

@teskanoo

System Health details

System Information

version core-2026.6.0
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch amd64
user root
virtualenv false
python_version 3.14.5
os_name Linux
os_version 6.12.85-haos
arch x86_64
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4996
Installed Version 2.0.5
Stage running
Available Repositories 3129
Downloaded Repositories 37
Dashboards
dashboards 15
resources 13
views 44
mode storage
Recorder
oldest_recorder_run June 8, 2026 at 1:50 AM
current_recorder_run June 18, 2026 at 9:26 PM
estimated_db_size 2275.73 MiB
database_engine mysql
database_version 11.4.10

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

Just a quick one here where he device class in use for Wind Direction is (I think) out of date

This is for an area that contains nothing but weather entities

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:623
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 9:27:23 PM (2 occurrences)
Last logged: 9:27:25 PM

Entity sensor.magic_areas_aggregates_system_weather_aggregate_wind_direction (<class 'custom_components.magic_areas.sensor.AreaAggregateSensor'>) is using state class 'measurement' which is impossible considering device class ('wind_direction') it is using; expected None or one of 'measurement_angle'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/jseidl/hass-magic_areas/issues

``

### Reproduction steps

1. Create an area that has a wind_direction entity
2. Allow wind_direction as an aggregate sensor
3.
...


### Debug logs

```text
None

Diagnostics dump

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions