You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It is not possible any more to use the River Pro with the application API. I tried with the public API, but the River pro doesn't appear in the list. I decided to create my own repository in Github, based on this one, and I modified and add some files to see if it this feature is possible. It works, here is what I did :
from .public import (delta_pro as public_delta_pro,
delta2 as public_delta2,
delta2_max as public_delta2_max,
river2 as public_river2,
river2_max as public_river2_max,
river2_pro as public_river2_pro,
smart_plug as public_smart_plug,
powerstream as public_powerstream,
river_pro as public_river_pro,
)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
It is not possible any more to use the River Pro with the application API. I tried with the public API, but the River pro doesn't appear in the list. I decided to create my own repository in Github, based on this one, and I modified and add some files to see if it this feature is possible. It works, here is what I did :
The first part :
from .public import (delta_pro as public_delta_pro,
delta2 as public_delta2,
delta2_max as public_delta2_max,
river2 as public_river2,
river2_max as public_river2_max,
river2_pro as public_river2_pro,
smart_plug as public_smart_plug,
powerstream as public_powerstream,
river_pro as public_river_pro,
)
And the second part :
device_by_product: OrderedDict[str, Type[BaseDevice]] = OrderedDict[str, Type[BaseDevice]]({
"DELTA Pro": public_delta_pro.DeltaPro,
"DELTA 2": public_delta2.Delta2,
"DELTA 2 Max": public_delta2_max.Delta2Max,
"RIVER PRO": public_river_pro.RiverPro,
"RIVER 2": public_river2.River2,
"RIVER 2 Max": public_river2_max.River2Max,
"RIVER 2 Pro": public_river2_pro.River2Pro,
"Smart Plug": public_smart_plug.SmartPlug,
"PowerStream": public_powerstream.PowerStream,
"Diagnostic": DiagnosticDevice
I tried to apply this in HACS (personnel repository) and it is going well.
I would like to know if it is possible to modify your code on this base ?
Best regards
Beta Was this translation helpful? Give feedback.
All reactions