Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add show_as_state options to Life360 #24725

Merged
merged 1 commit into from
Jun 24, 2019

Conversation

pnbruckner
Copy link
Contributor

@pnbruckner pnbruckner commented Jun 23, 2019

Description:

The original Life360 custom integration had a feature whereby the entity's state could be set to driving or moving if the device was not in a HA zone and the Life360 server indicated the device was driving or moving, respectively. This feature was removed when submitted to become a standard integration.

Users have requested this feature be added to the standard integration.

Related issue (if applicable): N/A

Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#9684

Example entry for configuration.yaml (if applicable):

life360:
  show_as_state:
    - driving
    - moving

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

@homeassistant
Copy link
Contributor

This pull request has been mentioned on Home Assistant Community. There might be relevant details there:

https://community.home-assistant.io/t/add-driving-and-moving-as-state-to-the-new-life360-integration/122967/8

@homeassistant
Copy link
Contributor

This pull request has been mentioned on Home Assistant Community. There might be relevant details there:

https://community.home-assistant.io/t/life360-device-tracker-platform/52406/1139

# If user wants driving or moving to be shown as state, and current
# location is not in a HA zone, then set location name accordingly.
loc_name = None
active_zone = run_callback_threadsafe(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a future PR, this should all become async.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep

@balloob balloob merged commit 8924d65 into home-assistant:dev Jun 24, 2019
@balloob
Copy link
Member

balloob commented Jun 24, 2019

Thanks!

balloob pushed a commit that referenced this pull request Jun 24, 2019
@pnbruckner pnbruckner deleted the life360-moving-driving branch June 24, 2019 15:33
@balloob balloob mentioned this pull request Jun 26, 2019
alandtse pushed a commit to alandtse/home-assistant that referenced this pull request Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants