How to use the somecomfort.FAN_MODES function in somecomfort

To help you get started, we’ve selected a few somecomfort examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github home-assistant / home-assistant / tests / components / honeywell / test_climate.py View on Github external
def test_attributes(self):
        """Test the attributes."""
        expected = {
            honeywell.ATTR_FAN: "running",
            ATTR_FAN_MODE: "auto",
            ATTR_FAN_MODES: somecomfort.FAN_MODES,
            ATTR_HVAC_MODES: somecomfort.SYSTEM_MODES,
        }
        assert expected == self.honeywell.device_state_attributes
        expected["fan"] = "idle"
        self.device.fan_running = False
        assert expected == self.honeywell.device_state_attributes