Skip to content

Commit

Permalink
fix sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
andvikt committed Mar 24, 2021
1 parent c9f0e85 commit 7d777c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/mega/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def state(self):
ret = tmpl.async_render({'value': ret})
except:
ret = ret
return ret
return str(ret)

@property
def device_class(self):
Expand Down Expand Up @@ -242,7 +242,7 @@ def state(self):
ret = tmpl.async_render({'value': ret})
except:
pass
return ret
return str(ret)

@property
def name(self):
Expand Down

0 comments on commit 7d777c9

Please sign in to comment.