Skip to content

Commit

Permalink
Merge pull request #100 from briis/v1.1.9
Browse files Browse the repository at this point in the history
Version 1.1.9
  • Loading branch information
briis authored Sep 23, 2024
2 parents 29bf278 + e5c7cde commit 20074d4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog for SecuritySpy Home Assistant Integration

## Version 1.1.9

Release date: `2024-09-23`

**NOTE** I do not have access to the latest version of SecuritySpy, neither do I use it in my home, so these changes have only been tested against an older V5.x system which was temporarely installed. I also have to state that I do NOT maintain this Module anymore, as I simply don't have the resources. If I can I will try and fix issues like this, but eventually the Integration will most likely stop working due to changes in Home Assistant.

### Changes

- Fixing deprecating warnings occuring in HA 2024.9. Closing Issue [#98](https://github.com/briis/securityspy/issues/98) and [#99](https://github.com/briis/securityspy/issues/99)

## Version 1.1.8

Release date: `2024-01-05`
Expand Down
3 changes: 2 additions & 1 deletion custom_components/securityspy/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def async_setup_entry(

async_add_entities(cameras)

platform = entity_platform.current_platform.get()
platform = entity_platform.async_get_current_platform()

_LOGGER.debug("Creating Service: Set Arm Mode")
platform.async_register_entity_service(
Expand Down Expand Up @@ -194,3 +194,4 @@ def _write_file(to_file, content):
with open(to_file, "wb") as _file:
_file.write(content)
_LOGGER.debug("File written to %s", to_file)

17 changes: 3 additions & 14 deletions custom_components/securityspy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,18 @@
SERVICE_DOWNLOAD_LATEST_MOTION_RECORDING = "download_latest_motion_recording"
SERVICE_ENABLE_SCHEDULE_PRESET = "enable_schedule_preset"
SERVICE_SET_ARM_MODE = "set_arm_mode"
DOWNLOAD_LATEST_MOTION_RECORDING_SCHEMA = vol.Schema(
{
vol.Required(ATTR_ENTITY_ID): cv.entity_ids,
vol.Required(CONF_FILENAME): cv.string,
}
)
DOWNLOAD_LATEST_MOTION_RECORDING_SCHEMA = { vol.Required(ATTR_ENTITY_ID): cv.entity_ids, vol.Required(CONF_FILENAME): cv.string,}
ENABLE_SCHEDULE_PRESET_SCHEMA = vol.Schema(
{
vol.Required(ATTR_PRESET_ID): cv.string,
}
)
SET_ARM_MODE_SCHEMA = vol.Schema(
{
vol.Required(ATTR_ENTITY_ID): cv.entity_ids,
vol.Required(CONF_MODE): vol.In(VALID_MODES),
vol.Required(CONF_ENABLED): cv.boolean,
}
)

SET_ARM_MODE_SCHEMA = { vol.Required(ATTR_ENTITY_ID): cv.entity_ids, vol.Required(CONF_MODE): vol.In(VALID_MODES), vol.Required(CONF_ENABLED): cv.boolean,}
SECURITYSPY_PLATFORMS = [
"camera",
"binary_sensor",
"sensor",
"switch",
"button",
]

4 changes: 2 additions & 2 deletions custom_components/securityspy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"requirements": [
"pysecspy==1.3.5"
],
"version": "1.1.8"
}
"version": "1.1.9"
}
3 changes: 1 addition & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "SecuritySpy for Home Assistant",
"render_readme": true,
"homeassistant": "2021.11.0"
}
}

0 comments on commit 20074d4

Please sign in to comment.