make code more clear

This commit is contained in:
Stefan Allius
2024-04-14 12:29:27 +02:00
parent 57bbd986b3
commit 05b576b198
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ class InverterG3(Inverter, ConnectionG3):
await self.mqtt.publish(f"{self.discovery_prfx}{component}"
f"/{node_id}{id}/config", data_json)
self.db.reg_clr_at_midnight(f'{self.entity_prfx}{node_id}')
self.db.reg_clr_at_midnight(f'{self.entity_prfx}{self.node_id}')
def close(self) -> None:
logging.debug(f'InverterG3.close() l{self.l_addr} | r{self.r_addr}')

View File

@@ -116,7 +116,7 @@ class InverterG3P(Inverter, ConnectionG3P):
await self.mqtt.publish(f"{self.discovery_prfx}{component}"
f"/{node_id}{id}/config", data_json)
self.db.reg_clr_at_midnight(f'{self.entity_prfx}{node_id}')
self.db.reg_clr_at_midnight(f'{self.entity_prfx}{self.node_id}')
def close(self) -> None:
logging.debug(f'InverterG3P.close() l{self.l_addr} | r{self.r_addr}')