Fix PEP257 issues
This commit is contained in:
parent
f6bc1a4575
commit
7035af6634
15 changed files with 75 additions and 64 deletions
|
@ -17,7 +17,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
|
||||
class DemoBinarySensor(BinarySensorDevice):
|
||||
"""A Demo binary sensor."""
|
||||
|
||||
def __init__(self, name, state, sensor_class):
|
||||
"""Initialize the demo sensor."""
|
||||
self._name = name
|
||||
self._state = state
|
||||
self._sensor_type = sensor_class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue