Have pylint warn when user visible log messages do not start with capital letter or end with a period (#48064)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
3742f175ad
commit
c820dd4cb5
107 changed files with 243 additions and 157 deletions
|
@ -309,7 +309,7 @@ class BrSensor(Entity):
|
|||
try:
|
||||
condition = data.get(FORECAST)[fcday].get(CONDITION)
|
||||
except IndexError:
|
||||
_LOGGER.warning("No forecast for fcday=%s...", fcday)
|
||||
_LOGGER.warning("No forecast for fcday=%s", fcday)
|
||||
return False
|
||||
|
||||
if condition:
|
||||
|
@ -339,7 +339,7 @@ class BrSensor(Entity):
|
|||
self._state = round(self._state * 3.6, 1)
|
||||
return True
|
||||
except IndexError:
|
||||
_LOGGER.warning("No forecast for fcday=%s...", fcday)
|
||||
_LOGGER.warning("No forecast for fcday=%s", fcday)
|
||||
return False
|
||||
|
||||
# update all other sensors
|
||||
|
@ -347,7 +347,7 @@ class BrSensor(Entity):
|
|||
self._state = data.get(FORECAST)[fcday].get(self.type[:-3])
|
||||
return True
|
||||
except IndexError:
|
||||
_LOGGER.warning("No forecast for fcday=%s...", fcday)
|
||||
_LOGGER.warning("No forecast for fcday=%s", fcday)
|
||||
return False
|
||||
|
||||
if self.type == SYMBOL or self.type.startswith(CONDITION):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue