Skip to content

Commit 4f71906

Browse files
committed
cleanup and docstrings
1 parent e31602e commit 4f71906

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

custom_components/pyscript/entity_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def set_attribute(self, attribute, value):
122122
"""Set a single attribute"""
123123
self._attributes[attribute] = value
124124

125-
def set_all_attributes(self, attributes={}):
125+
def set_all_attributes(self, attributes):
126126
"""Set all Attributes and clear existing values"""
127127
self._attributes = attributes
128128

custom_components/pyscript/function.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,10 @@ async def async_sleep(cls, duration):
200200

201201
@classmethod
202202
def entity_manager_get_factory(cls, ctx):
203+
"""Define and return em for this context."""
203204

204205
async def entity_manager_get(platform, name):
206+
"""Implement em"""
205207
return await EntityManager.get(ctx, platform, name)
206208

207209
return entity_manager_get

0 commit comments

Comments
 (0)