Upgrade pylint to 2.2.2 (#18750)
* Upgrade to 2.2.0 * simplifiable-if-expression fixes * duplicate-string-formatting-argument fixes * unused-import fixes * Upgrade to 2.2.1 * Remove no longer needed disable * Upgrade to 2.2.2
This commit is contained in:
parent
04c7d5c128
commit
1be440a72b
19 changed files with 35 additions and 40 deletions
|
@ -80,8 +80,7 @@ class StatisticsSensor(Entity):
|
|||
precision):
|
||||
"""Initialize the Statistics sensor."""
|
||||
self._entity_id = entity_id
|
||||
self.is_binary = True if self._entity_id.split('.')[0] == \
|
||||
'binary_sensor' else False
|
||||
self.is_binary = self._entity_id.split('.')[0] == 'binary_sensor'
|
||||
if not self.is_binary:
|
||||
self._name = '{} {}'.format(name, ATTR_MEAN)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue