-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
ics_calendar https://github.com/franc6/ics_calendar service calendar.create_event is being generated with a python-reserved word parameter in
class calendar:
@staticmethod
def create_event(*, entity_id: str, summary: str, description: str='', start_date_time: str='',
end_date_time: str='', start_date: str='', end_date: str='', in=None, location: str=''):
"""
Adds a new calendar event.
:param summary: Defines the short summary or subject for the event.
:param description: A more complete description of the event than the one provided by the summary.
:param start_date_time: The date and time the event should start.
:param end_date_time: The date and time the event should end.
:param start_date: The date the all-day event should start.
:param end_date: The date the all-day event should end (exclusive).
:param in: Days or weeks that you want to create the event in.
:param location: The location of the event.
"""
...This causes a SyntaxError
def create_event(*, entity_id: str, summary: str, description: str='', start_date_time: str='', end_date_time: str='', start_date: str='', end_date: str='', in=None, location: str=''):
^
SyntaxError: invalid syntax (pyscript_generated.py, line 361)Same for pass for ssh_command https://github.com/AlexxIT/SSHCommand
class ssh_command:
@staticmethod
def exec_command(*, command: str, host: str='', port: int=0, user: str='', pass: str=''):
"""
Execute SSH command
"""
...While it is impossible to fix this on each theoretical HACS add-on side, I propose a precaution on the pyscript_autocomplete side.
Metadata
Metadata
Assignees
Labels
No labels