Use dataclass for MqttServiceInfo#60191
Conversation
|
Hey there @emontnemery, mind taking a look at this pull request as it has been labeled with an integration ( |
| report( | ||
| f"accessed discovery_info['{name}'] instead of discovery_info.{name}; this will fail in version 2022.6", | ||
| exclude_integrations={"mqtt"}, | ||
| error_if_core=False, | ||
| ) |
There was a problem hiding this comment.
I think it is ok to use WARNING (not DEBUG) straight away for usb as there is only one core component and the PRs for these are ready on my machine:
tasmota
|
We need to update the infrastructure for flows, data_entry_flow etc, first before merging these. |
|
@MartinHjelmare does this need reverting?
core/homeassistant/config_entries.py Lines 1383 to 1387 in 4aae088
core/homeassistant/helpers/config_entry_flow.py Lines 86 to 93 in 4aae088 Components can continue using |
|
I will add |
Breaking change
MQTT discovery now uses a dataclass instead of a dictionary object.
Access using
__getitem__will fail in version 2022.6.Please use
<cls>.<name>instead.Proposed change
MQTT discovery now uses a dataclass instead of a dictionary object.
Access using
__getitem__will fail in version 2022.6.Please use
<cls>.<name>instead.Linked to this comment in the architecture discussion home-assistant/architecture#662 (comment)
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: