Skip to content

Commit 9c25ba6

Browse files
committed
Return the config attribute to the sensor #28
1 parent d6e9ad1 commit 9c25ba6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/python_script/sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async def async_setup_platform(
4040
class PythonSensor(Entity):
4141
def __init__(self, code, config: dict):
4242
self.code = code
43+
self.config = config
4344
self.attributes = {}
4445

4546
self._attr_device_class = config.get(CONF_DEVICE_CLASS)

0 commit comments

Comments
 (0)