1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Bump pycoolmasternet-async and add filter and error code support to CoolMastetNet (#84548)

* Add filter and error code support to CoolMastetNet

* Create separate entities

* Remove async_add_entities_for_platform

* Fixed call to async_add_entities

* Avoid using test global
This commit is contained in:
amitfin
2023-01-03 19:00:45 +02:00
committed by GitHub
parent 34798189ca
commit 11b03b5669
13 changed files with 339 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
"""The test for the Coolmaster sensor platform."""
from __future__ import annotations
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
async def test_sensor(
hass: HomeAssistant,
load_int: ConfigEntry,
) -> None:
"""Test the Coolmaster sensor."""
assert hass.states.get("sensor.l1_100_error_code").state == "OK"
assert hass.states.get("sensor.l1_101_error_code").state == "Err1"