franc6 / ics_calendar

Provides an ICS (icalendar) platform for the Home Assistant calendar
Apache License 2.0
146 stars 22 forks source link

Update __init__.py #137

Closed ccMatrix closed 3 months ago

ccMatrix commented 4 months ago

Fixed load_platform called directly error

Fixes #134

Description of change:

Import and use discovery instead of using the direct call.

Formatting, testing, and code coverage

Please note your pull request won't be accepted if you haven't properly formatted your source code, and ensured the unit tests are appropriate. Please note if you are not running on Windows, you can either run the scripts via a bash installation (like git-bash).