natekspencer / hacs-pura

Home Assistant integration for Pura smart fragrance diffusers
MIT License
19 stars 2 forks source link

Error when only one scent is installed #22

Closed lux4rd0 closed 1 year ago

lux4rd0 commented 1 year ago

The problem

When using the timer service and not selecting a slot (auto-select) - the service fails with this message:

Stopped because an error was encountered at September 29, 2023 at 10:11:02 PM (runtime: 0.54 seconds)

500 Server Error: Internal Server Error for url: https://trypura.io/mobile/api/devices/083A8D80C9AC/timer

Selecting a non-empty slot works, so does having both slots filled.

What version of Home Assistant Core are you running?

Home Assistant 2023.9.3

What was the last working version of Home Assistant Core?

No response

Diagnostics information

No response

Anything in the logs that might be useful?

No response

Additional information

No response

natekspencer commented 1 year ago

Can you try 0.1.15b0 and see if that works for you?

lux4rd0 commented 1 year ago

Cool - downloaded the beta - works great! As a side note - in the service - there's no way to leave the Intensity unchecked... So if I change it in another automation or on the mobile app, this automation needs to be updated as well. Can you make it a check box like the Slot parameter? Thanks!