Skip to content

Commit

Permalink
Merge branch 'main' into hospital-index
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchmanNL authored Nov 16, 2023
2 parents 5e08d01 + 0c9ea32 commit 564807b
Show file tree
Hide file tree
Showing 7 changed files with 697 additions and 179 deletions.
21 changes: 15 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
target-branch: "dependencyAutoUpdate"
open-pull-requests-limit: 30
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "04:00"
timezone: Europe/Berlin
allow:
- dependency-type: 'production'
assignees:
- DutchmanNL
target-branch: "dependencyAutoUpdate"
# Labels on pull requests for security and version updates
labels:
- "npm dependencies"
versioning-strategy: increase
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 DrozmotiX Holding B.V. <[email protected]>
Copyright (c) 2022 DrozmotiX Holding B.V. <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ As first value, the name from the warning message must be taken from the log. Th
## License
MIT License

Copyright (c) 2021 DrozmotiX Holding B.V. <[email protected]>
Copyright (c) 2022 DrozmotiX Holding B.V. <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@
"type": "state",
"common": {
"role": "",
"name": "Translator for unknow country names",
"type": "string",
"name": "Translator for unknown country names",
"type": "mixed",
"read": true,
"write": true,
"def": 0
Expand Down
15 changes: 15 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ class Covid19 extends utils.Adapter {
*/
async onReady() {
try {
// Needed to solve incorrect object typ for existing states (normally created during adapter install)
// Fixes issue #340 & #347
await this.extendObjectAsync(`countryTranslator`, {
type: 'state',
common: {
'role': '',
'name': 'Translator for unknown country names',
'type': 'number',
'read': true,
'write': true,
'def': 0
},
'native': {}
});

// Load configuration
const selectedCountries = this.config.countries || [];
const selectedGermanyFederalStates = this.config.selectedGermanyFederalStates || [];
Expand Down
Loading

0 comments on commit 564807b

Please sign in to comment.