[#255] Model variables as entities #256

Merged
blacklight merged 14 commits from 255-model-variables-as-entities into master 2023-04-29 18:24:25 +02:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit a3888be216 - Show all commits

View File

@ -616,6 +616,7 @@ class SystemPlugin(SensorPlugin, EntityManager):
**nic,
)
for nic in entities.get('network', [])
if nic.get('interface')
],
*[
SystemTemperature(
@ -625,6 +626,7 @@ class SystemPlugin(SensorPlugin, EntityManager):
**temp,
)
for temp in entities.get('temperature', [])
if temp.get('id') and temp.get('label')
],
*[
SystemFan(
@ -634,6 +636,7 @@ class SystemPlugin(SensorPlugin, EntityManager):
**fan,
)
for fan in entities.get('fans', [])
if fan.get('id') and fan.get('label')
],
*[
SystemBattery(