diff --git a/packages/modules/devices/enphase/device.py b/packages/modules/devices/enphase/device.py index cc9c11be83..1cecdacdb4 100644 --- a/packages/modules/devices/enphase/device.py +++ b/packages/modules/devices/enphase/device.py @@ -196,7 +196,8 @@ def receive_token(self) -> bool: self.device_config.configuration.token = token try: log.debug("saving new access token") - Pub().pub("openWB/set/system/device/" + str(self.device_config.id) + "/config", asdict(self.device_config)) + Pub().pub("openWB/set/system/device/" + str(self.device_config.id) + "/config", + asdict(self.device_config)) except Exception as e: log.exception('Token mqtt write exception ' + str(e)) return False