Skip to content

Commit

Permalink
Fix exception in async_discover with numbers not allowed to have devi…
Browse files Browse the repository at this point in the history
…ce_class
  • Loading branch information
tschamm committed Jan 22, 2023
1 parent 4712ba3 commit b669abe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/wattpilot/ressources/wattpilot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ properties:
category: Config
description: ampere_max limit
homeAssistant:
component: sensor
config:
device_class: current
unit_of_measurement: A
Expand Down Expand Up @@ -574,7 +575,7 @@ properties:
category: Config
description: car consumption in kWh for 100km (only stored for app)
homeAssistant:
component: number
component: sensor
config:
device_class: energy
unit_of_measurement: kWh
Expand Down Expand Up @@ -837,7 +838,7 @@ properties:
charging energy limit, measured in Wh, null means disabled, not the
next trip energy
homeAssistant:
component: number
component: sensor
config:
device_class: energy
state_class: total
Expand Down Expand Up @@ -1393,7 +1394,7 @@ properties:
type: float
category: Config
homeAssistant:
component: number
component: sensor
config:
device_class: power
unit_of_measurement: W
Expand Down

0 comments on commit b669abe

Please sign in to comment.