snicker / juicepassproxy

Proxy UDP requests to/from Juicebox EV chargers to MQTT discoverable by Home Assistant
25 stars 8 forks source link

fixes #70 #71

Closed snicker closed 1 month ago

Snuffy2 commented 1 month ago

This is how black sometimes breaks up long strings. Since the line break is between the curly braces, it still works just fine, it just looks weird. Feel free to change it if you'd like to. FWIW, I've moved away from including \ in multiline strings. I'd just do it like below, but any of these 3 ways (current, your fix, my fix) will work fine.

        _LOGGER.info(
            f"{self.entity_type.title()} Callback ({self.name}): "
            f"{state}. User Data: {user_data}"
        )