We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e9ad1 commit 9c25ba6Copy full SHA for 9c25ba6
custom_components/python_script/sensor.py
@@ -40,6 +40,7 @@ async def async_setup_platform(
40
class PythonSensor(Entity):
41
def __init__(self, code, config: dict):
42
self.code = code
43
+ self.config = config
44
self.attributes = {}
45
46
self._attr_device_class = config.get(CONF_DEVICE_CLASS)
0 commit comments