'Test night mode.'

def test_is_night_mode(self):

    device = _get_device_on()
    component = dyson.DysonPureCoolLinkDevice(self.hass, device)
    self.assertFalse(component.is_night_mode)
    device = _get_device_off()
    component = dyson.DysonPureCoolLinkDevice(self.hass, device)
    self.assertTrue(component.is_night_mode)
