mirror of
https://github.com/esphome/esphome.git
synced 2025-01-09 22:31:46 +01:00
Use default format to render FloatLiteral (#717)
Fixes https://github.com/esphome/issues/issues/557
This commit is contained in:
parent
fd1dc24ac6
commit
1d5f8d5a52
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ class FloatLiteral(Literal):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if math.isnan(self.float_):
|
if math.isnan(self.float_):
|
||||||
return u"NAN"
|
return u"NAN"
|
||||||
return u"{:f}f".format(self.float_)
|
return u"{}f".format(self.float_)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=bad-continuation
|
# pylint: disable=bad-continuation
|
||||||
|
|
Loading…
Reference in a new issue