Add missing units for xpercent, xfreq and xcounts Shelly sensors (#124288)

This commit is contained in:
Maciej Bieniek 2024-08-26 20:59:18 +02:00 committed by GitHub
parent 76182c246d
commit d8fe3c5377
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 76 additions and 6 deletions

View file

@ -166,8 +166,20 @@ MOCK_BLOCKS = [
MOCK_CONFIG = {
"input:0": {"id": 0, "name": "Test name input 0", "type": "button"},
"input:1": {"id": 1, "type": "analog", "enable": True},
"input:2": {"id": 2, "name": "Gas", "type": "count", "enable": True},
"input:1": {
"id": 1,
"type": "analog",
"enable": True,
"xpercent": {"expr": None, "unit": None},
},
"input:2": {
"id": 2,
"name": "Gas",
"type": "count",
"enable": True,
"xcounts": {"expr": None, "unit": None},
"xfreq": {"expr": None, "unit": None},
},
"light:0": {"name": "test light_0"},
"light:1": {"name": "test light_1"},
"light:2": {"name": "test light_2"},