Config and error handling fixes
What's Changed
** You will need to add sensor_id
to your config.yaml
to match your power consumption sensor, e.g. sensor.power_consumption
, as configured in your Energy Config in HA.
✅ Features
- Power consumption sensor ID is now configurable. It was previously hard-coded, meaning this wouldn't work for anyone else.
- Initial config setup asks for sensor ID
⚠️ Bug fixes⚠️ - Handle zero results from the API gracefully instead of panicking and dumping a stack trace.
- Notify user if sensor ID is not configured.
Full Changelog: v0.1.1...v0.1.2