HandyHat / ha-hildebrandglow-dcc

Inconsistent return statements PYL-R1710
Style
Minor
a year ago3 years old
Either all return statements in a function should return an expression, or none of them should.
265        )
266
267    @property
268    def icon(self) -> str | None:269        """Icon to use in the frontend."""
270        # Only the gas usage sensor needs an icon as the others inherit from their device class
271        if self.resource.classifier == "gas.consumption":