Fix typo: suppress (#10490)

* Fix typo: suppress

* Fix typo: discovered
This commit is contained in:
Rotzbua 2022-01-02 08:11:39 +01:00 committed by GitHub
parent 15f1df8fa4
commit e8caddaf63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -670,7 +670,7 @@ export default class HomeAssistant extends Extension {
/**
* If numeric attribute has SET access then expose as SELECT entity too.
* Note: currently both sensor and number are discoverd, this is to avoid
* Note: currently both sensor and number are discovered, this is to avoid
* breaking changes for sensors already existing in HA (legacy).
*/
if (allowsSet) {
@ -734,7 +734,7 @@ export default class HomeAssistant extends Extension {
/**
* If enum attribute has SET access then expose as SELECT entity too.
* Note: currently both sensor and select are discoverd, this is to avoid
* Note: currently both sensor and select are discovered, this is to avoid
* breaking changes for sensors already existing in HA (legacy).
*/
if ((firstExpose.access & ACCESS_SET)) {
@ -1001,7 +1001,7 @@ export default class HomeAssistant extends Extension {
}
private discover(entity: Device | Group, force=false): void {
// Check if already discoverd and check if there are configs.
// Check if already discovered and check if there are configs.
const discoverKey = this.getDiscoverKey(entity);
const discover = force || !this.discovered[discoverKey];
@ -1210,7 +1210,7 @@ export default class HomeAssistant extends Extension {
const discoveryMatch = data.topic.match(discoveryRegex);
const isDeviceAutomation = discoveryMatch && discoveryMatch[1] === 'device_automation';
if (discoveryMatch) {
// Clear outdated discovery configs and remember already discoverd device_automations
// Clear outdated discovery configs and remember already discovered device_automations
let message: KeyValue = null;
try {
message = JSON.parse(data.message);

View File

@ -344,7 +344,7 @@
"enum": ["console", "file", "syslog"]
},
"title": "Log output",
"description": "Output location of the log, leave empty to supress logging"
"description": "Output location of the log, leave empty to suppress logging"
},
"log_directory": {
"type": "string",
@ -468,7 +468,7 @@
"homeassistant_legacy_triggers": {
"type": "boolean",
"title": "Home Assistant legacy triggers",
"description": "Home Assistant legacy triggers, when enabled Zigbee2mqt will send an empty 'action' or 'click' after one has been send. A 'sensor_action' and 'sensor_click' will be discoverd",
"description": "Home Assistant legacy triggers, when enabled Zigbee2mqt will send an empty 'action' or 'click' after one has been send. A 'sensor_action' and 'sensor_click' will be discovered",
"default": true
},
"log_syslog": {

View File

@ -138,7 +138,7 @@ const defaults: RecursivePartial<Settings> = {
/**
* Home Assistant legacy triggers, when enabled:
* - Zigbee2mqt will send an empty 'action' or 'click' after one has been send
* - A 'sensor_action' and 'sensor_click' will be discoverd
* - A 'sensor_action' and 'sensor_click' will be discovered
*/
homeassistant_legacy_triggers: true,