mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Overhaul command_line tests (#46682)
This commit is contained in:
@@ -144,9 +144,6 @@ class CommandSwitch(SwitchEntity):
|
||||
|
||||
def _query_state(self):
|
||||
"""Query for state."""
|
||||
if not self._command_state:
|
||||
_LOGGER.error("No state command specified")
|
||||
return
|
||||
if self._value_template:
|
||||
return self._query_state_value(self._command_state)
|
||||
return self._query_state_code(self._command_state)
|
||||
|
||||
Reference in New Issue
Block a user