Danielhiversen / home_assistant_tibber_custom

Display Tibber prices and energy consumption as a graph. Tibber is available in Germany, Norway and Sweden Tibber has helped tens of thousands of new customers each month in Sweden, Norway & Germany to lower their energy bill and consumption. Tibber is using digital technology to make electricity consumption smarter. If you use this link to signup for Tibber, you get 50 euro to buy smart home products in the Tibber store: https://invite.tibber.com/6fd7a447
Apache License 2.0
81 stars 17 forks source link

Remove extraneous parameter from call to async_add_executor_job #16

Closed espenfjo closed 3 years ago

espenfjo commented 3 years ago

This removes dpi=200 from the call to async_add_executor_job. Right now this code throws an exception as async_add_executor_job does not have a named parameter dpi. I am not sure this is fixable so long as async_add_executor_job only implements *args and not **kwargs.

It should be safe to remove dpi=200 here since the figure have dpi=200 specified on creation.

Also ensure any error messages are displayed by using loglevel critical.

Fixes #14 and #15

Danielhiversen commented 3 years ago

Thanks 👍