hass-core/tests/components/mqtt
Jan Bouwhuis 447fbf58c9
Change naming of MQTT entities to correspond with HA guidelines (#95159)
* Set has_entity_name if device_name is set

* revert unneeded formatting change

* Add image platform

* Follow up comment

* Don't set `has_entity_name` without device name

* Only set has_entity_name if a valid name is set

* Follow device_class name and add tests

* Follow up comments add extra tests

* Move to helper - Log a warning

* fix test

* Allow to assign None as name explictly

* Refactor

* Log info messages when device name is not set

* Revert scene schema change - no device link

* Always set has_entity_name with device mapping

* Always set `_attr_has_entity_name`

* Cleanup
2023-07-21 12:52:10 +02:00
..
__init__.py
conftest.py Remove redundant stub_blueprint_populate fixture for MQTT integration (#93570) 2023-05-26 08:13:45 +02:00
test_alarm_control_panel.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_binary_sensor.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_button.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_camera.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_climate.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_common.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_config_flow.py Only expose MQTT advanced settings in advanced mode (#91996) 2023-04-25 22:23:17 +02:00
test_cover.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_device_tracker.py Don't require passing identifiers to DeviceRegistry.async_get_device (#96479) 2023-07-13 13:39:25 -04:00
test_device_trigger.py Don't require passing identifiers to DeviceRegistry.async_get_device (#96479) 2023-07-13 13:39:25 -04:00
test_diagnostics.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_discovery.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_fan.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_humidifier.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_image.py Improve MQTT image tests (#95359) 2023-06-27 13:53:38 +02:00
test_init.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_legacy_vacuum.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_light.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_light_json.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_light_template.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_lock.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_mixins.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_number.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_scene.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_select.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_sensor.py Change naming of MQTT entities to correspond with HA guidelines (#95159) 2023-07-21 12:52:10 +02:00
test_siren.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_state_vacuum.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_subscription.py Rename MQTT entry mock and cleanup (#91223) 2023-04-12 09:43:03 +02:00
test_switch.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_tag.py Don't require passing identifiers to DeviceRegistry.async_get_device (#96479) 2023-07-13 13:39:25 -04:00
test_text.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_trigger.py Add type hints for stub_blueprint_populate fixture (#93568) 2023-05-26 08:13:13 +02:00
test_update.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00
test_util.py Make sure MQTT client is available when starting depending platforms (#91164) 2023-04-20 08:07:35 +02:00
test_water_heater.py Allow ADR 0007 compliant schema for mqtt (#94305) 2023-07-18 14:29:45 +02:00