New area device class
More details can be found in the Number documentation and Sensor documentation
News for contributors. Every area has its own feed, or follow all posts.
No authors match
No posts in 2024 match these filters. Pick another year on the timeline.
More details can be found in the Number documentation and Sensor documentation
Pydantic is a widely used library in Python for data validation. On June 30, 2023, Pydantic v2 was released, introducing significant changes that are not backward compatible with Pydantic v1.
In October 2022, Home Assistant migrated the preferred color temperature unit from mired to kelvin.
A naming error of the entity description was found in the Water Heater integration, and we have now renamed WaterHeaterEntityEntityDescription to WaterHeaterEntityDescription in the 2025.1 release.
As of Home Assistant Core 2025.1, the constants used to return state in StateVacuumEntity are deprecated and replaced by the VacuumActivity enum.
As of Home Assistant Core 2024.12, we have implemented an independent property and method for controlling horizontal swing in ClimateEntity.
The utility function homeassistant.util.dt.utc_to_timestamp is deprecated and will be removed in Home Assistant Core 2026.1, custom integrations which call it should instead call the stdlib method datetime.datetime.timestamp()
With Home Assistant 2024.11 we added WebRTC for most cameras. To add support for it we needed to refactor and improve the camera entity.
Home Assistant 2024.12 will support the translation of custom units of measurement.
Since the original quality scale was introduced in 2020, Home Assistant changed quite a lot.
New code: `python @staticmethod @callback def async_get_options_flow( config_entry:
With Home Assistant 2024.11, "sections" view is now the default view when building a dashboard.
Starting a reauth or a reconfigure flow without a link to the config entry has been deprecated, and will start failing in 2025.12.
The definition of the core config class, an instance of which is available as hass.config has been moved from homeassistant/core.py to homeassistant/core_config.py.
The update entity has been adjusted:
As of Home Assistant Core 2024.11, we have introduced the alarm_state property in the AlarmControlPanelEntity.
New helper methods have been added to the ConfigFlow to facilitate management of reauth and reconfigure flows:
On March 30, 2024, we announced the deprecation of the hass.helpers attribute for the Home Assistant 2024.11 release.
As of Home Assistant Core 2024.11, the constants used to return state in CoverEntity are deprecated and replaced by the CoverState enum.
The UnitOfConductivity enum has been changed from:
Users typically interact with Assist using remote voice satellites, such as the ESP32-S3-BOX-3 running ESPHome, analog phones running VoIP, and more.
With the merge of core PR #124797, which will land in Home Assistant Core 2024.10, there is a new method in the update platform: version_is_newer().
As of Home Assistant Core 2024.10, we have added further validation of the parameters passed to the set_temperature method.
The source_type property of device_tracker entities is now always expected to be a SourceType enum value.
As of Home Assistant Core 2022.5, the feature flag constants used in MediaPlayerEntity were deprecated and replaced by the MediaPlayerEntityFeature enum.
As of Home Assistant Core 2022.5, the feature flag constants used in StateVacuumEntity were deprecated and replaced by the VacuumEntityFeature enum.
As of Home Assistant Core 2024.10, the constants used to return state in Camera are deprecated and replaced by the CameraState enum.
As of Home Assistant Core 2024.10, the constants used to return state in LockEntity are deprecated and replaced by the LockState enum.
On February 27, 2024, we announced the deprecation of the @bind_hass decorator and the hass.components attribute for the Home Assistant 2024.9 release.
Starting from Home Assistant 2024.10 calories have been added to the units of measurement in the energy sensor class.
With the merge of core PR #89242, which landed in Home Assistant Core 2023.4, Template.hass will be set on Template objects created during schema validation.
The icon translations schema has been adjusted to allow assigning icons for sections in services.
Registering entity service actions allows integration authors to pass in:
As of Home Assistant Core 2024.9, integrations implementing LawnMowerEntity can indicate that their mower is returning to the dock by using the new LawnMowerActivity.RETURNING state.
In Home Assistant 2024.8, we are introducing the _async_setup method for the data update coordinator.
As of Home Assistant Core 2024.8, we have implemented validation for the temperature action call provided by the ClimateEntity.
As of Home Assistant Core 2024.8, we have added two new flags to FanEntityFeature:
Starting from 2024.8, you can now add a model identifier to the DeviceInfo class.
The term "Services" has been a source of confusion for many users, as it is not immediately clear what it refers to; it could be a web or STT service, but in the context of Home Assistant, it means something entirely different (service calls).
The ClimateEntity has an hvac_action property, which describes what the climate entity is currently doing (which is not the same as its mode).
The way how state attributes are excluded from the recording was previously changed in September 2023.
async_register_static_pathshass.http.register_static_path is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig(url_path, path, cache_headers)])
Calling hass.config_entries.async_forward_entry_setup is deprecated and will be removed in Home Assistant 2025.6.
The AlarmControlPanelEntity is now enforcing validation of code for alarm control panel entities, which set code_arm_required to True (default behavior).
Since we introduced LLMs in Home Assistant as part of Year of the Voice, we have received the request to allow enabling LLMs to interact with Home Assistant.
Constructing ZoneInfo objects may do blocking I/O to load the zone info from disk if the timezone passed is not in the cache.
By default, the group integration allows entities to be grouped. If the default ON/OFF states for an entity default to on and off, then grouping is supported by default.
Recently we have added an open and opening state to LockEntity
We got a taste for speed after UV gave us back 215 compute hours a month. Our CI workflow gets triggered on each commit, and due to the high volume of contributions, it was triggered 6647 times in March 2024.
Recently we added the notify entity platform. The new notify platform method implements service send_message.
In the past, one of the challenges with hass.data was to correctly assign type information.
Integrations often need to set up and track custom data, such as coordinators, API connections, or code objects.
To update and reload the entry after a successful reauthentication flow, the helper async_update_reload_and_abort can be used.
async_track_state_change with async_track_state_change_eventasync_track_state_change is deprecated and will be removed in Home Assistant 2025.5. async_track_state_change_event should be used instead.
The notify platform is now available as an entity platform. The MVP for the new notify platform implements the method and service send_message.
In the past, we've backported features from upstream CPython to use them early and improve user and developers' experience.
async_add_hass_jobAs part of an effort to improve performance and simplify the core job API, async_add_hass_job is deprecated and will be removed from Home Assistant in 2025.5.
By replacing pip with uv in our production images, our build pipeline (and therefore releasing a new version) is a lot faster.
As of Home Assistant 2024.5, we deprecate the use of hass.helpers. Using hass.helpers will issue a warning in the logs.
As of Home Assistant Core 2024.4, config entries can now be reconfigured by adding a reconfigure step in their config flows.
The State object is now always updated and an event is always fired when an integration sets the state of an entity, regardless of any change to the state or a state attribute.
Translation support applies to HomeAssistantError and subclasses like ServiceValidationError.
async_run_job and async_add_jobasync_run_job and async_add_job are deprecated and will be removed in Home Assistant 2025.4.
As of Home Assistant Core 2024.4 we have deprecated the auxiliary heater functionality in ClimateEntity.
Starting from Home Assistant 2024.4, all integrations are imported in the executor to avoid blocking the event loop while the code is imported and executed.
The method for integrations to provide translations for states of its entities under other integrations, for example to translate an integration's sensors was changed in November 2022, and support for the old method will be removed in Home Assistant Core 2024.5.0.
It's now possible to provide translations for device names, including support for static values to be used as placeholders.
As of Home Assistant 2024.3, we deprecate the use of the @bind_hass decorator and thus also the use of hass.components.
In Home Assistant 2024.3, we introduced a new single_config_entry option for the integration manifest file.
As of Home Assistant Core 2024.3 we have added a new toggle method to ClimateEntity and users can now call climate.toggle in their service calls.
Starting from Home Assistant 2024.3, modifications to a ConfigEntry should use hass.config_entries.async_update_entry.
Light entities are now required to set the supported_color_modes and color_mode properties, and a warning will be logged asking users to report an issue if that's not done.
In Home Assistant 2024.2, integrations have a new way to provide icons. To support this new feature, ha-state-icon component properties have changed.
As of Home Assistant Core 2024.2 we have added two new flags into ClimateEntityFeature:
The primary reason for introducing light color modes was that a light's state should not be ambiguous.
In Home Assistant 2024.2, we will introduce hass.services.async_services_for_domain(), which is a new way to enumerate services by domain, allowing integrations to inspect which services are available without having to obtain all the services on the system.
It's now possible to provide static values to be used in an entity translation using placeholders.
In Home Assistant 2024.2, we will introduce a new way to provide icons for integrations:
Since Home Assistant Core 2022.12, a warning is issued in the logs if a sensor entity that has a device class uses unit of measurement and state class incorrectly, taking their device class into account.
FlowHandler.async_show_progress has been updated: