test_mustool_mt15mt29_airbox.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. def setUp(self):
  7. self.setUpForConfig(
  8. "mustool_mt15mt29_airbox.yaml", MUSTOOL_MT15MT29_AIRBOX_PAYLOAD
  9. )
  10. self.setUpMultiTime(
  11. [
  12. {
  13. "minute": "109",
  14. "name": "time_alarm_1",
  15. "testdata": {"minute": 600, "time": "10:00:00"},
  16. },
  17. {
  18. "minute": "110",
  19. "name": "time_alarm_2",
  20. },
  21. {
  22. "minute": "111",
  23. "name": "time_alarm_3",
  24. },
  25. ]
  26. )
  27. self.mark_secondary(
  28. [
  29. "sensor_battery",
  30. "binary_sensor_plug",
  31. "select_alarm_volume",
  32. "light_backlight",
  33. "number_co2_alarm_threshold",
  34. "number_sleep_timer",
  35. "number_timer",
  36. "number_alarm_1",
  37. "number_alarm_2",
  38. "number_alarm_3",
  39. "time_alarm_1",
  40. "time_alarm_2",
  41. "time_alarm_3",
  42. "select_temperature_unit",
  43. "number_co_alarm_threshold",
  44. "number_pm2_5_alarm_threshold",
  45. "number_formaldehyde_alarm_threshold",
  46. "switch_alarm_1",
  47. "switch_alarm_2",
  48. "switch_alarm_3",
  49. ]
  50. )