Spelling, grammar etc fixes (#14432)

* Spelling, grammar etc fixes

* s/an api data/data of an api/
This commit is contained in:
Ville Skyttä authored and Martin Hjelmare committed 2018-05-13 12:09:28 +02:00
1 parent 843789528e
commit 234bf1f0ea
15 files changed
+20 -20

No files matched your search

@@ -197,7 +197,7 @@ class BrSensor(Entity):
def uid(self, coordinates):
"""Generate a unique id using coordinates and sensor type."""
# The combination of the location, name an sensor type is unique
# The combination of the location, name and sensor type is unique
return "%2.6f%2.6f%s" % (coordinates[CONF_LATITUDE],
coordinates[CONF_LONGITUDE],
self.type)
+1 -1
View File
@@ -70,7 +70,7 @@ class HiveSensorEntity(Entity):
return DEVICETYPE_ICONS.get(self.device_type)
def update(self):
"""Update all Node data frome Hive."""
"""Update all Node data from Hive."""
if self.session.core.update_data(self.node_id):
for entity in self.session.entities:
entity.handle_update(self.data_updatesource)
@@ -156,7 +156,7 @@ class StatisticsSensor(Entity):
ATTR_CHANGE: self.change,
ATTR_AVERAGE_CHANGE: self.average_change,
}
# Only return min/max age if we have a age span
# Only return min/max age if we have an age span
if self._max_age:
state.update({
ATTR_MAX_AGE: self.max_age,