File: test_fan.py

package info (click to toggle)
pyatmo 9.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,292 kB
  • sloc: python: 4,474; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Define tests for fan module."""

from pyatmo import DeviceType


async def test_async_fan_NLLF(async_home):
    """Test NLLF Legrand centralized ventilation controller."""
    module_id = "12:34:56:00:01:01:01:b1"
    assert module_id in async_home.modules
    module = async_home.modules[module_id]
    assert module.device_type == DeviceType.NLLF
    assert module.power == 11
    assert module.firmware_revision == 60
    assert module.fan_speed == 1