We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f537c0c commit 9831be5Copy full SHA for 9831be5
custom_components/powersensor/sensor.py
@@ -78,6 +78,8 @@ async def handle_role_update(mac_address: str, new_role: str):
78
if new_role == 'solar':
79
new_data['with_solar'] = True # Remember for next time we start
80
persist_entry = True
81
+ # In case the role change was via a reconfigure
82
+ async_dispatcher_send(hass, SOLAR_SENSOR_DETECTED_SIGNAL)
83
84
if persist_entry:
85
hass.config_entries.async_update_entry(entry, data=new_data)
0 commit comments