test_mustool_mt15mt29_airbox.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. """Tests for Mustool MT15/MT29 Airbox, mainly for time entity."""
  2. from ..const import MUSTOOL_MT15MT29_AIRBOX_PAYLOAD
  3. from ..mixins.time import MultiTimeTests
  4. from .base_device_tests import TuyaDeviceTestCase
  5. class TestMustoolMT15MT29Airbox(MultiTimeTests, TuyaDeviceTestCase):
  6. __test__ = True
  7. def setUp(self):
  8. self.setUpForConfig(
  9. "mustool_mt15mt29_airbox.yaml", MUSTOOL_MT15MT29_AIRBOX_PAYLOAD
  10. )
  11. self.setUpMultiTime(
  12. [
  13. {
  14. "minute": "109",
  15. "name": "time_alarm_1",
  16. "testdata": {"minute": 600, "time": "10:00:00"},
  17. },
  18. {
  19. "minute": "110",
  20. "name": "time_alarm_2",
  21. },
  22. {
  23. "minute": "111",
  24. "name": "time_alarm_3",
  25. },
  26. ]
  27. )
  28. self.mark_secondary(
  29. [
  30. "sensor_battery",
  31. "binary_sensor_plug",
  32. "select_alarm_volume",
  33. "light_backlight",
  34. "number_co2_alarm_threshold",
  35. "number_sleep_timer",
  36. "number_timer",
  37. "number_alarm_1",
  38. "number_alarm_2",
  39. "number_alarm_3",
  40. "time_alarm_1",
  41. "time_alarm_2",
  42. "time_alarm_3",
  43. "select_temperature_unit",
  44. "number_co_alarm_threshold",
  45. "number_pm2_5_alarm_threshold",
  46. "number_formaldehyde_alarm_threshold",
  47. "switch_alarm_1",
  48. "switch_alarm_2",
  49. "switch_alarm_3",
  50. ]
  51. )