Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Commit ce236cb

Browse files
committed
Linting
1 parent f9d63e1 commit ce236cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

custom_components/custom_updater.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def __init__(self, hass, conf_hide_sensor, conf_card_urls,
130130
self.show_installable = config_show_installable
131131
self.cache_versions()
132132

133-
134133
def cache_versions(self):
135134
"""Cache."""
136135
information = self.pyupdate.get_sensor_data(self.ha_conf_dir,
@@ -148,7 +147,6 @@ def update_all(self):
148147
self.hass.states.set('sensor.custom_card_tracker', information[1],
149148
information[0])
150149

151-
152150
def install(self, element):
153151
"""Install single card."""
154152
self.pyupdate.install(self.ha_conf_dir, element, self.custom_url)
@@ -157,6 +155,8 @@ def install(self, element):
157155
class CustomComponents():
158156
"""Custom components controller."""
159157

158+
# pylint: disable=too-many-instance-attributes
159+
160160
def __init__(self, hass, conf_hide_sensor, conf_component_urls,
161161
config_show_installable):
162162
"""Initialize."""
@@ -171,7 +171,6 @@ def __init__(self, hass, conf_hide_sensor, conf_component_urls,
171171
self.show_installable = config_show_installable
172172
self.cache_versions()
173173

174-
175174
def cache_versions(self):
176175
"""Cache."""
177176
information = self.pyupdate.get_sensor_data(self.show_installable,
@@ -191,9 +190,12 @@ def install(self, element):
191190
"""Install single component."""
192191
self.pyupdate.install(self.ha_conf_dir, element, self.custom_url)
193192

193+
194194
class CustomPythonScripts():
195195
"""Custom python_scripts controller."""
196196

197+
# pylint: disable=too-many-instance-attributes
198+
197199
def __init__(self, hass, conf_hide_sensor, conf_python_script_urls,
198200
config_show_installable):
199201
"""Initialize."""
@@ -208,7 +210,6 @@ def __init__(self, hass, conf_hide_sensor, conf_python_script_urls,
208210
self.show_installable = config_show_installable
209211
self.cache_versions()
210212

211-
212213
def cache_versions(self):
213214
"""Cache."""
214215
information = self.pyupdate.get_sensor_data(self.show_installable,

0 commit comments

Comments
 (0)