mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +00:00
Cleanup unneeded MQTT vacuum feature check (#96312)
This commit is contained in:
parent
05c194f36d
commit
ad091479ea
@ -419,9 +419,9 @@ class MqttVacuum(MqttEntity, VacuumEntity):
|
||||
)
|
||||
|
||||
async def _async_publish_command(self, feature: VacuumEntityFeature) -> None:
|
||||
"""Check for a missing feature or command topic."""
|
||||
"""Publish a command."""
|
||||
|
||||
if self._command_topic is None or self.supported_features & feature == 0:
|
||||
if self._command_topic is None:
|
||||
return
|
||||
|
||||
await self.async_publish(
|
||||
|
@ -259,8 +259,8 @@ class MqttStateVacuum(MqttEntity, StateVacuumEntity):
|
||||
await subscription.async_subscribe_topics(self.hass, self._sub_state)
|
||||
|
||||
async def _async_publish_command(self, feature: VacuumEntityFeature) -> None:
|
||||
"""Check for a missing feature or command topic."""
|
||||
if self._command_topic is None or self.supported_features & feature == 0:
|
||||
"""Publish a command."""
|
||||
if self._command_topic is None:
|
||||
return
|
||||
|
||||
await self.async_publish(
|
||||
|
Loading…
x
Reference in New Issue
Block a user