Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check empty energy_info to avoid error (#780)
I have two P110, and the first one was not working after I added the second one. Based on the log, the energy_info is None when startup, so, the following entities are all failed to load. And from the Tapo app, the energy info is shown as "--" in the first P110 as well. After I have added the Null check, there is no startup error and the first P110 is now working (at least can be turned on/off via HA) Although the energy_info is still empty in HA, it is the same result as Tapo app.
- Loading branch information