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:
parent
5151c4d99b
commit
67c2747027
26 changed files with 232 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue