penright

Untitled

Jan 11th, 2022 (edited)
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. cv.Optional(CONF_BATTERY_LEVEL): sensor.sensor_schema(
  2. unit_of_measurement=UNIT_PERCENT,
  3. accuracy_decimals=0,
  4. device_class=DEVICE_CLASS_BATTERY,
  5. state_class=STATE_CLASS_MEASUREMENT,
  6. entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
  7. ),
  8. cv.Optional(CONF_BATTERY_VOLTAGE): sensor.sensor_schema(
  9. unit_of_measurement=UNIT_VOLT,
  10. accuracy_decimals=3,
  11. device_class=DEVICE_CLASS_VOLTAGE,
  12. state_class=STATE_CLASS_MEASUREMENT,
  13. entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
  14. ),
  15. cv.Optional(CONF_FLAG_VALUE): sensor.sensor_schema(
  16. entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
  17. ),
  18. cv.Optional(CONF_REED_SWITCH): binary_sensor.BINARY_SENSOR_SCHEMA(
  19. ),
  20. }
Add Comment
Please, Sign In to add comment