Skip to content

Commit

Permalink
Update z2m.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jan 6, 2025
1 parent 5b2fb81 commit 6ed619e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/z2m.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static function cronDaily() {
if (file_exists($file)) {
$package = json_decode(file_get_contents($file), true);
}
if (isset($package['version']) && config::byKey('wanted_z2m_version', __CLASS__) == ''){
if (isset($package['version']) && config::byKey('wanted_z2m_version', __CLASS__,'') == ''){
config::save('zigbee2mqttVersion', $package['version'], 'z2m');
if ($package['version'] !='') {
$releaseVersion = file_get_contents('https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json');
Expand Down

0 comments on commit 6ed619e

Please sign in to comment.