Add MQTT object_id option (#58728)

* Add MQTT object_id option

* Add MQTT object_id option

* Add MQTT object_id option

* Add MQTT object_id option - Fix light and vacuum

* Add MQTT object_id option - Fix light and vacuum

* Add MQTT object_id option - Fix lock

* Add MQTT object_id option - Fix device

* Add MQTT object_id option - Fix device

* Update tests/components/mqtt/test_discovery.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Change deprecated method

Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
Damien Duboeuf 2021-11-08 14:02:18 +01:00 committed by GitHub
parent 5151c4d99b
commit 67c2747027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 232 additions and 6 deletions

View file

@ -66,6 +66,7 @@ async def _async_setup_entity(
class MqttCamera(MqttEntity, Camera):
"""representation of a MQTT camera."""
_entity_id_format = camera.ENTITY_ID_FORMAT
_attributes_extra_blocked = MQTT_CAMERA_ATTRIBUTES_BLOCKED
def __init__(self, hass, config, config_entry, discovery_data):