Use str instead of string placeholders in solaredge (#99843)

This commit is contained in:
Joost Lekkerkerker 2023-09-07 20:00:43 +02:00 committed by GitHub
parent 66d16108be
commit 4017473d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ class SolarEdgeDetailsSensor(SolarEdgeSensorEntity):
"""Return a unique ID.""" """Return a unique ID."""
if not self.data_service.site_id: if not self.data_service.site_id:
return None return None
return f"{self.data_service.site_id}" return str(self.data_service.site_id)
class SolarEdgeInventorySensor(SolarEdgeSensorEntity): class SolarEdgeInventorySensor(SolarEdgeSensorEntity):