Skip to content

Commit

Permalink
Filter out empty string IP addreses (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
amosyuen committed Jul 20, 2022
1 parent 41c674a commit cb78869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/tplink_deco/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def bytes_to_bits(bytes_count):


def filter_invalid_ip(ip_address):
return None if ip_address == "UNKNOWN" else ip_address
return None if ip_address == "UNKNOWN" or not ip_address else ip_address


def snake_case_to_title_space(str):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tplink_deco/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/amosyuen/ha-tplink-deco",
"issue_tracker": "https://github.com/amosyuen/ha-tplink-deco/issues",
"iot_class": "local_polling",
"version": "2.1.1",
"version": "2.1.2",
"config_flow": true,
"dependencies": [],
"codeowners": ["@amosyuen"],
Expand Down

0 comments on commit cb78869

Please sign in to comment.