@property
    def should_poll(self):
        return self._command_state is not None
Only poll if we have state command.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/command_line.py/CommandSwitch.should_poll