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 GPS coords to meraki #10998

Merged
merged 1 commit into from
Dec 10, 2017
Merged

Add GPS coords to meraki #10998

merged 1 commit into from
Dec 10, 2017

Conversation

addelovein
Copy link
Contributor

@addelovein addelovein commented Dec 6, 2017

Description:

Added support for GPS coordinates for Meraki. BLE devices will contain NaN and therefor be ignored.

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

@homeassistant
Copy link
Contributor

Hi @addelovein,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

if lat=="NaN" or lng=="NaN":
_LOGGER.debug("No coordinates received, skipping gps_location for: " + mac)
gps_location=None
accuracy=None

Choose a reason for hiding this comment

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

missing whitespace around operator


if lat=="NaN" or lng=="NaN":
_LOGGER.debug("No coordinates received, skipping gps_location for: " + mac)
gps_location=None

Choose a reason for hiding this comment

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

missing whitespace around operator

mac = i["clientMac"]
_LOGGER.debug("clientMac: %s", mac)

if lat=="NaN" or lng=="NaN":
_LOGGER.debug("No coordinates received, skipping gps_location for: " + mac)

Choose a reason for hiding this comment

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

line too long (91 > 79 characters)

mac = i["clientMac"]
_LOGGER.debug("clientMac: %s", mac)

if lat=="NaN" or lng=="NaN":

Choose a reason for hiding this comment

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

missing whitespace around operator

mac = i["clientMac"]
_LOGGER.debug("clientMac: %s", mac)

Choose a reason for hiding this comment

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

blank line contains whitespace


if lat == "NaN" or lng == "NaN":
_LOGGER.debug(
"No coordinates received, skipping gps_location for: " + mac

Choose a reason for hiding this comment

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

line too long (80 > 79 characters)

@balloob balloob merged commit b2c5a9f into home-assistant:dev Dec 10, 2017
akatrevorjay added a commit to akatrevorjay/home-assistant that referenced this pull request Dec 11, 2017
…ent-being-nonexistent

* origin/dev:
  Volvo on call: Optional use of Scandinavian miles. Also add average fuel consumption property (home-assistant#11051)
  add custom bypass status to total connect (home-assistant#11042)
  Refactor hue to split bridge support from light platform (home-assistant#10691)
  Add GPS coords to meraki (home-assistant#10998)
  Add a caldav calendar component (home-assistant#10842)
  Added support for cover in tellstick (home-assistant#10858)
akatrevorjay added a commit to akatrevorjay/home-assistant that referenced this pull request Dec 11, 2017
…into dev

* 'dev' of https://github.com/home-assistant/home-assistant:
  Volvo on call: Optional use of Scandinavian miles. Also add average fuel consumption property (home-assistant#11051)
  add custom bypass status to total connect (home-assistant#11042)
  Refactor hue to split bridge support from light platform (home-assistant#10691)
  Add GPS coords to meraki (home-assistant#10998)
  Add a caldav calendar component (home-assistant#10842)
  Added support for cover in tellstick (home-assistant#10858)
@fabaff fabaff mentioned this pull request Dec 16, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Mar 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants