-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
253 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
platform: scrape | ||
name: dagens citat | ||
resource: https://www.dagenscitat.nu/rss.xml | ||
select: 'description' | ||
index: 1 | ||
scan_interval: 3600 |
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/anniversaries/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/anniversaries/__pycache__/config_flow.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/anniversaries/__pycache__/const.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+19 Bytes
(100%)
custom_components/anniversaries/__pycache__/sensor.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/__pycache__/config_flow.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/__pycache__/configuration_schema.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/__pycache__/constrains.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/__pycache__/ws_api_handlers.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/backup.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/configuration.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/const.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/data.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/exceptions.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/hacsbase/__pycache__/task_factory.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/handler/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+231 Bytes
(110%)
custom_components/hacs/handler/__pycache__/download.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/handler/__pycache__/template.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/helpers/__pycache__/get_defaults.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+77 Bytes
(100%)
custom_components/hacs/helpers/__pycache__/install.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/helpers/__pycache__/misc.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
"""Filter functions.""" | ||
|
||
|
||
def filter_content_return_one_of_type( | ||
content, namestartswith, filterfiltype, attr="name" | ||
): | ||
"""Only match 1 of the filter.""" | ||
contents = [] | ||
filetypefound = False | ||
for filename in content: | ||
if isinstance(filename, str): | ||
if filename.startswith(namestartswith): | ||
if filename.endswith(f".{filterfiltype}"): | ||
if not filetypefound: | ||
contents.append(filename) | ||
filetypefound = True | ||
continue | ||
else: | ||
contents.append(filename) | ||
else: | ||
if getattr(filename, attr).startswith(namestartswith): | ||
if getattr(filename, attr).endswith(f".{filterfiltype}"): | ||
if not filetypefound: | ||
contents.append(filename) | ||
filetypefound = True | ||
continue | ||
else: | ||
contents.append(filename) | ||
return contents | ||
|
||
|
||
def find_first_of_filetype(content, filterfiltype, attr="name"): | ||
"""Find the first of the file type.""" | ||
filename = "" | ||
for _filename in content: | ||
if isinstance(_filename, str): | ||
if _filename.endswith(f".{filterfiltype}"): | ||
filename = _filename | ||
break | ||
else: | ||
if getattr(_filename, attr).endswith(f".{filterfiltype}"): | ||
filename = getattr(_filename, attr) | ||
break | ||
return filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/appdaemon.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/integration.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/manifest.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/plugin.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/python_script.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+318 Bytes
(100%)
custom_components/hacs/repositories/__pycache__/repository.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
+393 Bytes
(120%)
custom_components/hacs/repositories/__pycache__/theme.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.