Skip to content

Commit

Permalink
Fix power factor sensors (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu authored Oct 10, 2022
1 parent f23519a commit 91debfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,5 @@ blueprints
.HA_VERSION
*.db*
*.log.*
*.yaml
*.yaml
custom_components
6 changes: 3 additions & 3 deletions python_scripts/shellies_discovery_gen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@
SENSOR_CURRENT: DESCRIPTION_SENSOR_CURRENT,
SENSOR_ENERGY: DESCRIPTION_SENSOR_ENERGY,
SENSOR_POWER: DESCRIPTION_SENSOR_POWER,
SENSOR_POWER_FACTOR: DESCRIPTION_SENSOR_POWER_FACTOR_COVER,
SENSOR_POWER_FACTOR: DESCRIPTION_SENSOR_POWER_FACTOR,
SENSOR_TEMPERATURE: DESCRIPTION_SENSOR_TEMPERATURE,
SENSOR_VOLTAGE: DESCRIPTION_SENSOR_VOLTAGE,
},
Expand Down Expand Up @@ -755,7 +755,7 @@
SENSOR_CURRENT: DESCRIPTION_SENSOR_CURRENT,
SENSOR_ENERGY: DESCRIPTION_SENSOR_ENERGY,
SENSOR_POWER: DESCRIPTION_SENSOR_POWER,
SENSOR_POWER_FACTOR: DESCRIPTION_SENSOR_POWER_FACTOR_COVER,
SENSOR_POWER_FACTOR: DESCRIPTION_SENSOR_POWER_FACTOR,
SENSOR_TEMPERATURE: DESCRIPTION_SENSOR_TEMPERATURE,
SENSOR_VOLTAGE: DESCRIPTION_SENSOR_VOLTAGE,
},
Expand Down Expand Up @@ -826,7 +826,7 @@
SENSOR_CURRENT: DESCRIPTION_SENSOR_CURRENT,
SENSOR_ENERGY: DESCRIPTION_SENSOR_ENERGY,
SENSOR_POWER: DESCRIPTION_SENSOR_POWER,
SENSOR_POWER_FACTOR: DESCRIPTION_SENSOR_POWER_FACTOR_COVER,
SENSOR_POWER_FACTOR: DESCRIPTION_SENSOR_POWER_FACTOR,
SENSOR_TEMPERATURE: DESCRIPTION_SENSOR_TEMPERATURE,
SENSOR_VOLTAGE: DESCRIPTION_SENSOR_VOLTAGE,
},
Expand Down

0 comments on commit 91debfd

Please sign in to comment.