mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Do not call update() in constructor (#7912)
* Do not call update() in constructor * Do not call update() in constructor * Remove unused import
This commit is contained in:
@@ -57,7 +57,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
add_devices([
|
||||
ScrapeSensor(hass, rest, name, select, value_template, unit)
|
||||
])
|
||||
], True)
|
||||
|
||||
|
||||
class ScrapeSensor(Entity):
|
||||
@@ -71,7 +71,6 @@ class ScrapeSensor(Entity):
|
||||
self._select = select
|
||||
self._value_template = value_template
|
||||
self._unit_of_measurement = unit
|
||||
self.update()
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
||||
Reference in New Issue
Block a user