Skip to content

Commit

Permalink
Maggior chiarezza nel log
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualdj committed Nov 16, 2024
1 parent bc759c6 commit 33fd2c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions custom_components/pun_sensor/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,18 @@ async def _async_update_data(self):
# Logga i dati
_LOGGER.debug(
"Numero di dati: %s",
", ".join(str(len(i)) for i in self.pun_data.pun.values()),
", ".join(
str(f"{len(dati)} ({fascia.value})")
for fascia, dati in self.pun_data.pun.items()
if fascia != Fascia.F23
),
)
_LOGGER.debug(
"Valori PUN: %s", ", ".join(str(f) for f in self.pun_values.value.values())
"Valori PUN: %s",
", ".join(
f"{prezzo} ({fascia.value})"
for fascia, prezzo in self.pun_values.value.items()
),
)

async def update_fascia(self, now=None):
Expand Down

0 comments on commit 33fd2c3

Please sign in to comment.