Cleanup redundant mqtt entity constructors (#100939)
* Remove redundant mqtt entity constructors * Remove unrelated change * Follow up comment * Revert changes to mqtt update platform --------- Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
d387308f3c
commit
59a26010ba
23 changed files with 27 additions and 275 deletions
|
@ -84,6 +84,7 @@ class MqttCamera(MqttEntity, Camera):
|
|||
_default_name = DEFAULT_NAME
|
||||
_entity_id_format: str = camera.ENTITY_ID_FORMAT
|
||||
_attributes_extra_blocked: frozenset[str] = MQTT_CAMERA_ATTRIBUTES_BLOCKED
|
||||
_last_image: bytes | None = None
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -93,8 +94,6 @@ class MqttCamera(MqttEntity, Camera):
|
|||
discovery_data: DiscoveryInfoType | None,
|
||||
) -> None:
|
||||
"""Initialize the MQTT Camera."""
|
||||
self._last_image: bytes | None = None
|
||||
|
||||
Camera.__init__(self)
|
||||
MqttEntity.__init__(self, hass, config, config_entry, discovery_data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue