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
|
@ -108,16 +108,6 @@ class MqttEvent(MqttEntity, EventEntity):
|
|||
_attributes_extra_blocked = MQTT_EVENT_ATTRIBUTES_BLOCKED
|
||||
_template: Callable[[ReceivePayloadType, PayloadSentinel], ReceivePayloadType]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
config: ConfigType,
|
||||
config_entry: ConfigEntry,
|
||||
discovery_data: DiscoveryInfoType | None,
|
||||
) -> None:
|
||||
"""Initialize the sensor."""
|
||||
MqttEntity.__init__(self, hass, config, config_entry, discovery_data)
|
||||
|
||||
@staticmethod
|
||||
def config_schema() -> vol.Schema:
|
||||
"""Return the config schema."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue