How to use the somecomfort.client.Device 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 kk7ds / somecomfort / tests / test_client.py View on Github external
def test_fan_with_no_fan(self):
        dev = somecomfort.client.Device(None, None)
        dev._data = {
            'hasFan': False,
            'fanData': {
                'fanMode': None,
                'fanIsRunning': None,
                'fanModeOnAllowed': False,
                'fanModeAutoAllowed': False,
                'fanModeCirculateAllowed': False,
                'fanModeFollowScheduleAllowed': False,
            }
        }
        self.assertEqual(None, dev.fan_mode)
        # Make sure it's False not falsey
        self.assertEqual(False, dev.fan_running)